Add 'pvp_combat_active' placeholder. Fixes #306

This commit is contained in:
bloodshot 2020-11-13 17:51:42 -05:00
parent 96d3ca5c21
commit afd3d4098e

View File

@ -154,6 +154,11 @@ public String onRequest(OfflinePlayer offlinePlayer, String identifier) {
return "";
}
return String.valueOf(PlayerUtil.getInstance().canPlayerPvP((GDClaim) claim, user));
case "pvp_combat_active" :
if (claim == null) {
return "";
}
return String.valueOf(playerData.getPvpCombatTimeRemaining((GDClaim) claim) > 0);
case "blocks_total" :
final int initial = playerData.getInitialClaimBlocks();
final int accrued = playerData.getAccruedClaimBlocks();