Added faction points papi placeholder

This commit is contained in:
Driftay 2019-09-07 10:36:18 -04:00
parent 8d848523c5
commit e1158ac370

View File

@ -120,6 +120,8 @@ public class ClipPlaceholderAPIManager extends PlaceholderExpansion implements R
return faction.isPeaceful() ? Conf.colorNeutral + TL.COMMAND_SHOW_PEACEFUL.toString() : ""; return faction.isPeaceful() ? Conf.colorNeutral + TL.COMMAND_SHOW_PEACEFUL.toString() : "";
case "faction_tntbank_balance": case "faction_tntbank_balance":
return String.valueOf(faction.getTnt()); return String.valueOf(faction.getTnt());
case "faction_points":
return String.valueOf(faction.getPoints());
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 + ")";