mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 05:04:20 +00:00
add args check
This commit is contained in:
parent
f3ede17d4d
commit
7fcaa97a6a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user