Add Role prefix placeholder (#1067)
This commit is contained in:
parent
6f55243a80
commit
fa007e5674
@ -22,7 +22,6 @@ public enum Role implements Permissable {
|
|||||||
public final int value;
|
public final int value;
|
||||||
public final String nicename;
|
public final String nicename;
|
||||||
public final TL translation;
|
public final TL translation;
|
||||||
private final ConfigurationSection RELATION_CONFIG = P.p.getConfig().getConfigurationSection("fperm-gui.relation");
|
|
||||||
|
|
||||||
|
|
||||||
Role(final int value, final TL translation) {
|
Role(final int value, final TL translation) {
|
||||||
|
@ -45,6 +45,8 @@ public class ClipPlaceholderAPIManager extends EZPlaceholderHook {
|
|||||||
return String.valueOf(fPlayer.getKills());
|
return String.valueOf(fPlayer.getKills());
|
||||||
case "player_deaths":
|
case "player_deaths":
|
||||||
return String.valueOf(fPlayer.getDeaths());
|
return String.valueOf(fPlayer.getDeaths());
|
||||||
|
case "player_role":
|
||||||
|
return fPlayer.hasFaction() ? fPlayer.getRole().getPrefix() : "";
|
||||||
// Then Faction stuff
|
// Then Faction stuff
|
||||||
case "faction_name":
|
case "faction_name":
|
||||||
return faction.getTag();
|
return faction.getTag();
|
||||||
|
Loading…
Reference in New Issue
Block a user