added 30 second delay to Enrollment Officer

This commit is contained in:
2024-05-20 11:14:24 -05:00
parent f8e99a84b1
commit c792e49fdc
2 changed files with 12 additions and 0 deletions
@@ -137,10 +137,20 @@ public class VendorDialogMsg extends ClientNetMsg {
}
if(contract.getObjectUUID() == 1502040){
if(!playerCharacter.getTimestamps().containsKey("lastBoxChange"))
playerCharacter.getTimestamps().put("lastBoxChange",System.currentTimeMillis() - 1000);
if(playerCharacter.getTimeStamp("lastBoxChange") + 30000L > System.currentTimeMillis()) {
return;
}
if(playerCharacter.isBoxed == false) {
ChatManager.chatSystemInfo(playerCharacter, "You Are Already The Active Character.");
return;
}
playerCharacter.getTimestamps().put("lastBoxChange",System.currentTimeMillis());
playerCharacter.isBoxed = false;
playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true);
ChatManager.chatSystemInfo(playerCharacter, "Promoting To Active Duty");
+2
View File
@@ -177,6 +177,8 @@ public class PlayerCharacter extends AbstractCharacter {
public float ZergMultiplier = 1.0f;
public int mineAppliedID = 0;
public long lastBoxChange = System.currentTimeMillis();
/**
* No Id Constructor
*/