Commit 7fcaa97a authored by fengyuecanzhu's avatar fengyuecanzhu
Browse files

add args check

parent f3ede17d
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment