Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Ursprung
e1eb392ffd
Commit
5554b28894
@ -258,6 +258,7 @@ public class Tablist extends ChannelInboundHandlerAdapter {
|
|||||||
private void sendNpcPacket(List<String> names, boolean remove) {
|
private void sendNpcPacket(List<String> names, boolean remove) {
|
||||||
if(!names.isEmpty()) {
|
if(!names.isEmpty()) {
|
||||||
UpdateTeamsPacket packet = new UpdateTeamsPacket();
|
UpdateTeamsPacket packet = new UpdateTeamsPacket();
|
||||||
|
packet.setName(TAB_TEAM);
|
||||||
packet.setMode(remove ? UpdateTeamsPacket.Mode.REMOVE_PLAYER : UpdateTeamsPacket.Mode.ADD_PLAYER);
|
packet.setMode(remove ? UpdateTeamsPacket.Mode.REMOVE_PLAYER : UpdateTeamsPacket.Mode.ADD_PLAYER);
|
||||||
packet.setPlayers(names);
|
packet.setPlayers(names);
|
||||||
sendPacket(player, packet);
|
sendPacket(player, packet);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren