mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-02 16:59:56 +01:00
Add colors to Who command. Fix not being able to use black
This commit is contained in:
parent
a62d341d8f
commit
84b726b636
@ -441,7 +441,7 @@ public class MVWorld {
|
||||
private ChatColor translateStringToChatColor(String color) {
|
||||
if (color.equalsIgnoreCase("aqua"))
|
||||
return ChatColor.AQUA;
|
||||
if (color.equalsIgnoreCase("aqua"))
|
||||
if (color.equalsIgnoreCase("black"))
|
||||
return ChatColor.BLACK;
|
||||
if (color.equalsIgnoreCase("blue"))
|
||||
return ChatColor.BLUE;
|
||||
|
@ -77,7 +77,13 @@ public class WhoCommand extends BaseCommand {
|
||||
result += player.getName() + " ";
|
||||
}
|
||||
}
|
||||
sender.sendMessage(color + world.getName() + ChatColor.WHITE + " - " + result);
|
||||
String worldName = world.getName();
|
||||
if(world.getAlias() != null && world.getAlias().length() > 0) {
|
||||
worldName = world.getAlias();
|
||||
color = world.getAliasColor();
|
||||
}
|
||||
|
||||
sender.sendMessage(color + worldName + ChatColor.WHITE + " - " + result);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user