Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
7fcaa97a
Commit
7fcaa97a
authored
Apr 21, 2022
by
fengyuecanzhu
Browse files
add args check
parent
f3ede17d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/SetStatsCommand.java
View file @
7fcaa97a
...
@@ -20,6 +20,11 @@ public final class SetStatsCommand implements CommandHandler {
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment