Skip to content

Commit

Permalink
Grammar Correction πŸ“ƒ
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakkoble committed Sep 6, 2022
1 parent 8a5562f commit 79413bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/jakkoble/WhitelistCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class WhitelistCommand : CommandExecutor, TabCompleter {
if (Whitelist().playerNames().isEmpty()) sender.sendMessage("No Player is Whitelisted")
else {
val playerNames = Whitelist().playerNames()
sender.sendMessage("${ChatColor.GOLD}There ${if(playerNames.size == 1) "is one Player" else "are ${playerNames.size} Player"} whitelisted.")
sender.sendMessage("${ChatColor.GOLD}There ${if(playerNames.size == 1) "is one Player" else "are ${playerNames.size} Players"} whitelisted.")
val message = StringBuilder()
playerNames.forEach { message.append(if (playerNames.indexOf(it) != playerNames.size - 1) "$it, " else it) }
sender.sendMessage(message.substring(0))
Expand Down

0 comments on commit 79413bd

Please sign in to comment.