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
495ca5c1
Commit
495ca5c1
authored
Apr 18, 2022
by
Melledy
Browse files
Fix small issue with command parsing
parent
7bac86ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/commands/PlayerCommands.java
View file @
495ca5c1
...
@@ -79,7 +79,7 @@ public class PlayerCommands {
...
@@ -79,7 +79,7 @@ public class PlayerCommands {
return
;
return
;
}
}
// Execute
// Execute
int
len
=
Math
.
min
(
first
.
length
()
+
1
,
msg
.
length
());
int
len
=
Math
.
min
(
split
[
0
]
.
length
()
+
1
,
msg
.
length
());
cmd
.
execute
(
player
,
msg
.
substring
(
len
));
cmd
.
execute
(
player
,
msg
.
substring
(
len
));
}
}
}
}
...
...
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