Skip to content

Commit

Permalink
Un-fix tempkickillegal issue: Do kick if location could not be restored.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Jul 12, 2014
1 parent 607407d commit e09d024
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -125,11 +125,12 @@ public static void handleIllegalMove(final PlayerMoveEvent event, final Player p
}
}
pLoc.cleanup();
if (!restored && MovingConfig.getConfig(player).tempKickIllegal) {
// TODO: correct the location ?
NCPAPIProvider.getNoCheatPlusAPI().denyLogin(player.getName(), 24L * 60L * 60L * 1000L);
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + " deny login for 24 hours");
if (!restored) {
// TODO: reset the bounding box of the player ?
if (MovingConfig.getConfig(player).tempKickIllegal) {
NCPAPIProvider.getNoCheatPlusAPI().denyLogin(player.getName(), 24L * 60L * 60L * 1000L);
}
LogUtil.logSevere("[NCP] could not restore location for " + player.getName() + " deny login for 24 hours");
CheckUtils.kickIllegalMove(player);
}
}
Expand Down

0 comments on commit e09d024

Please sign in to comment.