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:
Braydon 2021-02-20 22:07:02 -05:00 committed by GitHub
commit 092eaa19ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,7 +99,7 @@ public class PlayerListener implements Listener {
for (int i = 0; i < 5; i++)
player.sendMessage("");
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("");
List<BaseComponent> components = new ArrayList<>();