Add Role prefix placeholder (#1067)

This commit is contained in:
Dariasc 2018-03-03 23:48:02 -03:00 committed by Trent Hensler
parent 6f55243a80
commit fa007e5674
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,6 @@ public enum Role implements Permissable {
public final int value;
public final String nicename;
public final TL translation;
private final ConfigurationSection RELATION_CONFIG = P.p.getConfig().getConfigurationSection("fperm-gui.relation");
Role(final int value, final TL translation) {

View File

@ -45,6 +45,8 @@ public class ClipPlaceholderAPIManager extends EZPlaceholderHook {
return String.valueOf(fPlayer.getKills());
case "player_deaths":
return String.valueOf(fPlayer.getDeaths());
case "player_role":
return fPlayer.hasFaction() ? fPlayer.getRole().getPrefix() : "";
// Then Faction stuff
case "faction_name":
return faction.getTag();