Dieser Commit ist enthalten in:
Ursprung
23c0e507cd
Commit
0a6eccf70f
@ -8,10 +8,10 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
public class ServerDataHandler {
|
public class ServerDataHandler {
|
||||||
|
|
||||||
private Class<?> explosionPacket = Reflection.getClass("{nms.network.protocol.game}.ClientboundServerDataPacket");
|
private Class<?> serverDataPacket = Reflection.getClass("{nms.network.protocol.game}.ClientboundServerDataPacket");
|
||||||
|
|
||||||
public ServerDataHandler() {
|
public ServerDataHandler() {
|
||||||
TinyProtocol.instance.addFilter(explosionPacket, this::packetFilter);
|
TinyProtocol.instance.addFilter(serverDataPacket, this::packetFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Object packetFilter(Player player, Object o) {
|
private Object packetFilter(Player player, Object o) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren