Discord Placeholders
This commit is contained in:
parent
a54a7aa4fb
commit
e3e6f5561c
@ -138,6 +138,10 @@ public class ClipPlaceholderAPIManager extends PlaceholderExpansion implements R
|
||||
return FactionTag.TNT_MAX.replace(FactionTag.TNT_MAX.getTag(), faction);
|
||||
case "faction_points":
|
||||
return fPlayer.hasFaction() ? String.valueOf(faction.getPoints()) : "0";
|
||||
case "discord_acount":
|
||||
return fPlayer.discordSetup() ? String.valueOf(fPlayer.discordUserID()) : "Not Linked";
|
||||
case "faction_discord":
|
||||
return fPlayer.hasFaction() ? String.valueOf(faction.getDiscord()) : "Not Linked";
|
||||
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