mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 00:12:29 +00:00
Merge pull request #65 from fengyuecanzhu/development
args check for setstats command
This commit is contained in:
commit
24b1fd2045
@ -10,7 +10,7 @@ import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Command(label = "setstats", usage = "setstats|stats <stat> <value>",
|
@Command(label = "setstats", usage = "setstats|stats <stat> <value>",
|
||||||
aliases = {"stats"})
|
description = "Set fight property for your current active character", aliases = {"stats"}, permission = "player.setstats")
|
||||||
public final class SetStatsCommand implements CommandHandler {
|
public final class SetStatsCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -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