forked from MagicBane/Server
box check only every 10 seconds
This commit is contained in:
@@ -4897,7 +4897,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void checkIfBoxed(PlayerCharacter player){
|
public static void checkIfBoxed(PlayerCharacter player){
|
||||||
if(System.currentTimeMillis() > player.nextBoxCheck)
|
if(System.currentTimeMillis() < player.nextBoxCheck)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
player.nextBoxCheck = System.currentTimeMillis() + 10000;
|
player.nextBoxCheck = System.currentTimeMillis() + 10000;
|
||||||
|
|||||||
Reference in New Issue
Block a user