Handle UUIDs for teams as well as names #418
This commit is contained in:
parent
f8fe3116df
commit
54bd979506
@ -189,7 +189,11 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
|
||||
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
||||
|
||||
if (team == null) {
|
||||
return player.getName();
|
||||
team = ((Player) player).getScoreboard().getEntryTeam(((Player) player).getUniqueId().toString());
|
||||
|
||||
if (team == null) {
|
||||
return player.getName();
|
||||
}
|
||||
}
|
||||
|
||||
return team.getPrefix() + team.getColor() + player.getName() + team.getSuffix();
|
||||
|
Loading…
Reference in New Issue
Block a user