sync mutes from proxy to server

This commit is contained in:
destro174 committed 2022-01-05 15:25:17 +01:00
1 parent 41ac24fd74
commit eb31a141d0
9 files changed
+65 -6

No files matched your search

@@ -156,4 +156,11 @@ public class ChatHandler {
.filter(p -> !ignoredPlayers.contains(p.getUniqueId()))
.forEach(p -> p.sendMessage(message));
}
public void mutePlayer(String uuid, boolean muted) {
ByteArrayDataOutput buf = ByteStreams.newDataOutput();
buf.writeUTF("chatpunishments");
buf.writeUTF(uuid);
buf.writeBoolean(muted);
}
}