mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-20 14:32:18 +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) {
|
private ChatColor translateStringToChatColor(String color) {
|
||||||
if (color.equalsIgnoreCase("aqua"))
|
if (color.equalsIgnoreCase("aqua"))
|
||||||
return ChatColor.AQUA;
|
return ChatColor.AQUA;
|
||||||
if (color.equalsIgnoreCase("aqua"))
|
if (color.equalsIgnoreCase("black"))
|
||||||
return ChatColor.BLACK;
|
return ChatColor.BLACK;
|
||||||
if (color.equalsIgnoreCase("blue"))
|
if (color.equalsIgnoreCase("blue"))
|
||||||
return ChatColor.BLUE;
|
return ChatColor.BLUE;
|
||||||
|
@ -77,7 +77,13 @@ public class WhoCommand extends BaseCommand {
|
|||||||
result += player.getName() + " ";
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user