mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-02 23:23:26 +01:00
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 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) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user