add args check

This commit is contained in:
fengyuecanzhu 2022-04-21 12:49:23 +08:00
parent f3ede17d4d
commit 7fcaa97a6a

View File

@ -20,6 +20,11 @@ public final class SetStatsCommand implements CommandHandler {
return;
}
if (args.size() < 2){
CommandHandler.sendMessage(sender, "Usage: setstats|stats <stat> <value>");
return;
}
String stat = args.get(0);
switch (stat) {
default: