mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 19:23:01 +08:00
add args check
This commit is contained in:
parent
f3ede17d4d
commit
7fcaa97a6a
@ -20,6 +20,11 @@ public final class SetStatsCommand implements CommandHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.size() < 2){
|
||||||
|
CommandHandler.sendMessage(sender, "Usage: setstats|stats <stat> <value>");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String stat = args.get(0);
|
String stat = args.get(0);
|
||||||
switch (stat) {
|
switch (stat) {
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user