forked from MagicBane/Server
new box flag system
This commit is contained in:
@@ -5202,33 +5202,12 @@ 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() + 10000);
|
||||
// if (!this.timestamps.containsKey("nextBoxCheck"))
|
||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
|
||||
// if (!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||
// this.isBoxed = checkIfBoxed(this);
|
||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
|
||||
//}
|
||||
|
||||
if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
||||
updateBoxStatus(checkIfBoxed(this));
|
||||
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
|
||||
}
|
||||
|
||||
//if (this.isBoxed){
|
||||
//if(!this.title.equals(CharacterTitle.PVE)){
|
||||
// this.title = CharacterTitle.PVE;
|
||||
// InterestManager.setObjectDirty(this);
|
||||
// InterestManager.reloadCharacter(this, false);
|
||||
// this.setDirtyLoad(true);
|
||||
//}
|
||||
//}else {
|
||||
// if (!this.title.equals(CharacterTitle.NONE)) {
|
||||
// this.title = CharacterTitle.NONE;
|
||||
// InterestManager.setObjectDirty(this);
|
||||
// InterestManager.reloadCharacter(this, false);
|
||||
// this.setDirtyLoad(true);
|
||||
// }
|
||||
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
||||
//}
|
||||
|
||||
if (this.level < 10 && this.enteredWorld) {
|
||||
|
||||
Reference in New Issue
Block a user