Added faction points papi placeholder
This commit is contained in:
parent
8d848523c5
commit
e1158ac370
@ -120,6 +120,8 @@ public class ClipPlaceholderAPIManager extends PlaceholderExpansion implements R
|
||||
return faction.isPeaceful() ? Conf.colorNeutral + TL.COMMAND_SHOW_PEACEFUL.toString() : "";
|
||||
case "faction_tntbank_balance":
|
||||
return String.valueOf(faction.getTnt());
|
||||
case "faction_points":
|
||||
return String.valueOf(faction.getPoints());
|
||||
case "faction_powerboost":
|
||||
double powerBoost = faction.getPowerBoost();
|
||||
return (powerBoost == 0.0) ? "" : (powerBoost > 0.0 ? TL.COMMAND_SHOW_BONUS.toString() : TL.COMMAND_SHOW_PENALTY.toString()) + powerBoost + ")";
|
||||
|
Loading…
Reference in New Issue
Block a user