mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-25 12:45:48 +01:00
Add 'pvp_combat_active' placeholder. Fixes #306
This commit is contained in:
parent
96d3ca5c21
commit
afd3d4098e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user