mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +01:00
Fixed #335
This commit is contained in:
parent
23e63a5a63
commit
2e969b90bf
@ -53,7 +53,8 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
|
|||||||
protected String getDisplayName(CommandSender player) {
|
protected String getDisplayName(CommandSender player) {
|
||||||
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
||||||
|
|
||||||
return (team == null ? "" : team.getPrefix()) + player.getName() + (team == null ? "" : team.getSuffix());
|
return (team == null ? "" : team.getColor() + team.getPrefix()) + player.getName() +
|
||||||
|
(team == null ? "" : team.getSuffix());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
|
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user