Merge pull request #11 from nickreesdev/master
Made it show "are" instead of "is" in the join MOTD if there is not one player online.
This commit is contained in:
commit
092eaa19ec
@ -99,7 +99,7 @@ public class PlayerListener implements Listener {
|
|||||||
for (int i = 0; i < 5; i++)
|
for (int i = 0; i < 5; i++)
|
||||||
player.sendMessage("");
|
player.sendMessage("");
|
||||||
player.sendMessage(Style.color(" Welcome &7" + optionalAccount.get().getDisplayName() + " &fto &2&lMc&6&lGamer&c&lZone"));
|
player.sendMessage(Style.color(" Welcome &7" + optionalAccount.get().getDisplayName() + " &fto &2&lMc&6&lGamer&c&lZone"));
|
||||||
player.sendMessage(Style.color(" &fThere is &b" + online + " &fplayer" + (online == 1 ? "" : "s") + " online!"));
|
player.sendMessage(Style.color(" &fThere " + (online == 1 ? "is" : "are") + " &b" + online + " &fplayer" + (online == 1 ? "" : "s") + " online!"));
|
||||||
player.sendMessage("");
|
player.sendMessage("");
|
||||||
|
|
||||||
List<BaseComponent> components = new ArrayList<>();
|
List<BaseComponent> components = new ArrayList<>();
|
||||||
|
Reference in New Issue
Block a user