mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Un-fix tempkickillegal issue: Do kick if location could not be restored.
This commit is contained in:
parent
607407d4fa
commit
e09d024101
@ -125,11 +125,12 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pLoc.cleanup();
|
pLoc.cleanup();
|
||||||
if (!restored && MovingConfig.getConfig(player).tempKickIllegal) {
|
if (!restored) {
|
||||||
// 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");
|
|
||||||
// TODO: reset the bounding box of the player ?
|
// 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);
|
CheckUtils.kickIllegalMove(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user