hpfxd / PandaSpigot

Fork of Paper for 1.8.8 focused on improved performance and stability.
GNU General Public License v3.0
238 stars 65 forks source link

Fix banning players by name #146

Closed P3ridot closed 1 year ago

P3ridot commented 1 year ago

So without this missing method, server uses default JsonList#a method implementation which returns just toString for key (in this case it's GameProfile). By adding this method, we return result of GameProfileBanList#b which looks like that

protected String b(GameProfile gameprofile) {
    return gameprofile.getId().toString();
}

It's done in the same way in WhiteList and there everything works

HanielCota commented 1 year ago

That is good! like

mechoriet commented 1 year ago

Seems like this method just got deleted instead of decompile fixed https://github.com/hpfxd/PandaSpigot/blob/master/patches/server/0001-Fix-Decompilation-errors.patch#L621-L632

uRyanxD commented 1 year ago

Yeah