Consistent naming
This commit is contained in:
parent
e343ac69fa
commit
c3e1e6547a
@ -66,12 +66,12 @@ public class PlaceholderAPIManager extends EZPlaceholderHook {
|
|||||||
case "faction_powerboost":
|
case "faction_powerboost":
|
||||||
double powerBoost = faction.getPowerBoost();
|
double powerBoost = faction.getPowerBoost();
|
||||||
return (powerBoost == 0.0) ? "" : (powerBoost > 0.0 ? TL.COMMAND_SHOW_BONUS.toString() : TL.COMMAND_SHOW_PENALTY.toString() + powerBoost + ")");
|
return (powerBoost == 0.0) ? "" : (powerBoost > 0.0 ? TL.COMMAND_SHOW_BONUS.toString() : TL.COMMAND_SHOW_PENALTY.toString() + powerBoost + ")");
|
||||||
case "leader":
|
case "faction_leader":
|
||||||
FPlayer fAdmin = faction.getFPlayerAdmin();
|
FPlayer fAdmin = faction.getFPlayerAdmin();
|
||||||
return fAdmin == null ? "Server" : fAdmin.getName().substring(0, fAdmin.getName().length() > 14 ? 13 : fAdmin.getName().length());
|
return fAdmin == null ? "Server" : fAdmin.getName().substring(0, fAdmin.getName().length() > 14 ? 13 : fAdmin.getName().length());
|
||||||
case "warps":
|
case "faction_warps":
|
||||||
return String.valueOf(faction.getWarps().size());
|
return String.valueOf(faction.getWarps().size());
|
||||||
case "raidable":
|
case "faction_raidable":
|
||||||
boolean raid = P.p.getConfig().getBoolean("hcf.raidable", false) && faction.getLandRounded() >= faction.getPowerRounded();
|
boolean raid = P.p.getConfig().getBoolean("hcf.raidable", false) && faction.getLandRounded() >= faction.getPowerRounded();
|
||||||
return raid ? TL.RAIDABLE_TRUE.toString() : TL.RAIDABLE_FALSE.toString();
|
return raid ? TL.RAIDABLE_TRUE.toString() : TL.RAIDABLE_FALSE.toString();
|
||||||
case "faction_home_world":
|
case "faction_home_world":
|
||||||
@ -102,6 +102,8 @@ public class PlaceholderAPIManager extends EZPlaceholderHook {
|
|||||||
return String.valueOf(faction.getKills());
|
return String.valueOf(faction.getKills());
|
||||||
case "faction_deaths":
|
case "faction_deaths":
|
||||||
return String.valueOf(faction.getDeaths());
|
return String.valueOf(faction.getDeaths());
|
||||||
|
case "faction_maxvaults":
|
||||||
|
return String.valueOf(faction.getMaxVaults());
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user