error popup when trying to flag unboxed too frequently
This commit is contained in:
@@ -101,8 +101,12 @@ public class VendorDialogMsg extends ClientNetMsg {
|
|||||||
if(!playerCharacter.getTimestamps().containsKey("lastBoxFlag"))
|
if(!playerCharacter.getTimestamps().containsKey("lastBoxFlag"))
|
||||||
playerCharacter.getTimestamps().put("lastBoxFlag",System.currentTimeMillis() - 1000);
|
playerCharacter.getTimestamps().put("lastBoxFlag",System.currentTimeMillis() - 1000);
|
||||||
|
|
||||||
if(playerCharacter.getTimestamps().get("lastBoxFlag") + 10000 > System.currentTimeMillis())
|
if(playerCharacter.getTimestamps().get("lastBoxFlag") + 10000 > System.currentTimeMillis()) {
|
||||||
PlayerCharacter.unboxPlayer(playerCharacter);
|
PlayerCharacter.unboxPlayer(playerCharacter);
|
||||||
|
}else{
|
||||||
|
ErrorPopupMsg.sendErrorPopup(playerCharacter, 49);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restrict disc trainers to only characters who have
|
// Restrict disc trainers to only characters who have
|
||||||
|
|||||||
Reference in New Issue
Block a user