player kicked hacking :(
cam72cam opened this issue ยท 5 comments
public void onPlayerKick(PlayerKickEvent event)
{
if(event.getReason().contains("moved too quickly")) {
System.out.println("Prevented kicking "+event.getPlayer().getDisplayName()+" for reason: ""+event.getReason()+""");
event.setCancelled(true);
}
}
we need to incorperate this( we can use the existing lock files to check if a player is moving)
And make sure to check if player is in dreamland or nightmare land or what else you got there.
Also I need to say we really need to get on the performance bit here, because normally when there is only one player in the server it runs like 1-10% of CPU but now it already runs at 30% it's massive and I don't like it :P