Skip to content

Commit

Permalink
Implement delimiter for plugin authors in the version command (#2139)
Browse files Browse the repository at this point in the history
This change separates authors so that instead of "Authors: xxFLORIIxxAROX" it looks like "Authors: xxFLORII, xxAROX".
  • Loading branch information
xxFLORII authored Jul 30, 2023
1 parent 3a17f94 commit 9a84110
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public boolean execute(CommandSender sender, String commandLabel, String[] args)
if (authors.size() == 1) {
sender.sendMessage("Author: " + authorsString[0]);
} else if (authors.size() >= 2) {
sender.sendMessage("Authors: " + authorsString[0]);
sender.sendMessage("Authors: " + String.join(", ", authors));
}
} else {
sender.sendMessage(new TranslationContainer("nukkit.command.version.noSuchPlugin"));
Expand Down

0 comments on commit 9a84110

Please sign in to comment.