Made "/stat help" also display the usage explanation

This commit is contained in:
Artemis-the-gr8 2022-06-20 16:54:15 +02:00
parent b316d6f3a5
commit 1bf8acf6ee

View File

@ -35,6 +35,10 @@ public class StatCommand implements CommandExecutor {
adventure.sender(sender).sendMessage(messageFactory.helpMsg(sender instanceof ConsoleCommandSender));
return true;
}
else if (args[0].equalsIgnoreCase("help")) {
adventure.sender(sender).sendMessage(messageFactory.helpMsg(sender instanceof ConsoleCommandSender));
return false;
}
else if (args[0].equalsIgnoreCase("examples") ||
args[0].equalsIgnoreCase("example")) { //in case of "statistic examples", show examples