DreamLand

DreamLand

46.5k Downloads

player kicked hacking :(

cam72cam opened this issue ยท 5 comments

commented

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)

commented

And make sure to check if player is in dreamland or nightmare land or what else you got there.

commented

yup, I was unspecific when I said moving, I meant to say teleporting

commented

I agree, there are a couple spots that should be improved

commented

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

commented

Fixed, detection needs to be added, low priority