mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 02:04:57 +00:00
Player rank is now displayed after their custom tag
This commit is contained in:
parent
3e403208db
commit
bbf6f0eb82
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
package me.StevenLawson.TotalFreedomMod.player;
|
||||
|
||||
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
|
||||
import me.StevenLawson.TotalFreedomMod.admin.AdminList;
|
||||
import me.StevenLawson.TotalFreedomMod.bridge.EssentialsBridge;
|
||||
import me.StevenLawson.TotalFreedomMod.commands.AdminLevel;
|
||||
import me.StevenLawson.TotalFreedomMod.config.ConfigurationEntry;
|
||||
import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
||||
import org.bukkit.*;
|
||||
|
@ -508,7 +510,7 @@ public class PlayerData {
|
|||
}
|
||||
else
|
||||
{
|
||||
this.tag = Utilities.colorize(tag) + ChatColor.WHITE;
|
||||
this.tag = Utilities.colorize(tag) + ChatColor.RESET + ((Utilities.DEVELOPERS.contains(player.getName()) || AdminList.isSuperAdmin(player)) ? " " + PlayerRank.fromSender(player).getPrefix() + ChatColor.RESET : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue