Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
0c509bdfdc
Commit
5fd0dcae65
@ -238,11 +238,15 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
break;
|
||||
}
|
||||
} else if(packet instanceof PlayerListItemRemove) {
|
||||
List<String> names = new ArrayList<>();
|
||||
for(UUID uuid : ((PlayerListItemRemove) packet).getUuids()) {
|
||||
synchronized (directTabItems) {
|
||||
directTabItems.remove(uuid);
|
||||
PlayerListItem.Item directItem = directTabItems.remove(uuid);
|
||||
if(npcs.remove(uuid))
|
||||
names.add(directItem.getUsername());
|
||||
}
|
||||
}
|
||||
sendNpcPacket(names, true);
|
||||
} else if(packet instanceof PlayerListItemUpdate) {
|
||||
PlayerListItemUpdate list = (PlayerListItemUpdate) packet;
|
||||
EnumSet<PlayerListItemUpdate.Action> actions = list.getActions();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren