Dieser Commit ist enthalten in:
Ursprung
d3c27dd0f2
Commit
022b0983b6
@ -40,7 +40,7 @@ public class AntiNocom {
|
||||
Object pos = digPosition.get(packet);
|
||||
int x = TechHider.blockPositionX.get(pos);
|
||||
int z = TechHider.blockPositionZ.get(pos);
|
||||
if(!player.getWorld().isChunkLoaded(ProtocolUtils.posToChunk(x), ProtocolUtils.posToChunk(z))) {
|
||||
if((x != 0 || z != 0) && !player.getWorld().isChunkLoaded(ProtocolUtils.posToChunk(x), ProtocolUtils.posToChunk(z))) {
|
||||
Bukkit.getScheduler().runTask(Core.getInstance(), () -> player.kickPlayer(null));
|
||||
SWException.log(player.getName() + " kicked for digging an unloaded block (potential NoCom-DOS attack)", x + " " + z);
|
||||
return null;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren