Added none message to messages file

This commit is contained in:
ajgeiss0702
2020-05-06 12:04:28 -07:00
parent 503ee76306
commit 54af154c7b
2 changed files with 2 additions and 1 deletions
@@ -46,7 +46,7 @@ public class ManageCommand extends Command {
playerlist += msgs.get("list.playerlist").replaceAll("\\{NAME\\}", p.getDisplayName()); playerlist += msgs.get("list.playerlist").replaceAll("\\{NAME\\}", p.getDisplayName());
} }
if(playerlist.equalsIgnoreCase("")) { if(playerlist.equalsIgnoreCase("")) {
playerlist = msgs.color("&7None, "); playerlist = msgs.get("list.none")+", ";
} }
playerlist = playerlist.substring(0, playerlist.length()-2); playerlist = playerlist.substring(0, playerlist.length()-2);
msg = msg.replaceAll("\\{LIST\\}", playerlist); msg = msg.replaceAll("\\{LIST\\}", playerlist);
@@ -76,6 +76,7 @@ public class BungeeMessages {
d.put("list.format", "&b{SERVER} &7({COUNT}): {LIST}"); d.put("list.format", "&b{SERVER} &7({COUNT}): {LIST}");
d.put("list.playerlist", "&9{NAME}&7, "); d.put("list.playerlist", "&9{NAME}&7, ");
d.put("list.total", "&7Total players in queues: &f{TOTAL}"); d.put("list.total", "&7Total players in queues: &f{TOTAL}");
d.put("list.none", "&7None");
for(String k : d.keySet()) { for(String k : d.keySet()) {