forked from MagicBane/Server
rollback visual BOXED indicator
This commit is contained in:
@@ -5202,13 +5202,14 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
this.safeZone = this.isInSafeZone();
|
||||
|
||||
if(this.isActive && this.enteredWorld) {
|
||||
// if (!this.timestamps.containsKey("nextBoxCheck"))
|
||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
if (!this.timestamps.containsKey("nextBoxCheck"))
|
||||
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
|
||||
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||
updateBoxStatus(checkIfBoxed(this));
|
||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
//}
|
||||
if(!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||
//updateBoxStatus(checkIfBoxed(this));
|
||||
this.isBoxed = checkIfBoxed(this);
|
||||
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
}
|
||||
|
||||
if (this.level < 10 && this.enteredWorld) {
|
||||
while (this.level < 10) {
|
||||
@@ -5277,9 +5278,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
if(pc.equals(player))
|
||||
continue;
|
||||
//pc.isBoxed = true;
|
||||
pc.updateBoxStatus(true);
|
||||
//pc.updateBoxStatus(true);
|
||||
pc.isBoxed = true;
|
||||
}
|
||||
player.updateBoxStatus(false);
|
||||
//player.updateBoxStatus(false);
|
||||
player.isBoxed = false;
|
||||
}
|
||||
public static boolean checkIfBoxed(PlayerCharacter player){
|
||||
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) {
|
||||
|
||||
Reference in New Issue
Block a user