Player rank is now displayed after their custom tag

This commit is contained in:
Business Goose 2022-03-28 21:30:49 +01:00
parent 3e403208db
commit bbf6f0eb82
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -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 : "");
}
}