Cleaned up scoreboard team color/prefix/suffix code and correctly ordered the layout
This commit is contained in:
		@@ -53,8 +53,11 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
 | 
			
		||||
    protected String getDisplayName(CommandSender player) {
 | 
			
		||||
        Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
 | 
			
		||||
 | 
			
		||||
        return (team == null ? "" : team.getColor() + team.getPrefix()) + player.getName() +
 | 
			
		||||
                (team == null ? "" : team.getSuffix());
 | 
			
		||||
        if (team == null) {
 | 
			
		||||
            return player.getName();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return team.getPrefix() + team.getColor() + player.getName() + team.getSuffix();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user