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
a5caf3d5
Commit
a5caf3d5
authored
Apr 19, 2022
by
SpikeHD
Browse files
fix references to givechar
parent
57ef41ab
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/commands/PlayerCommands.java
View file @
a5caf3d5
...
...
@@ -184,13 +184,13 @@ public final class PlayerCommands {
int
target
,
avatarID
,
level
=
1
;
if
(
args
.
size
()
<
2
)
{
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <avatarId> [level]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <avatarId> [level]"
);
return
;
}
switch
(
args
.
size
())
{
default
:
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <avatarId> [level]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <avatarId> [level]"
);
return
;
case
1
:
try
{
...
...
@@ -253,7 +253,7 @@ public final class PlayerCommands {
@Override
public
void
execute
(
List
<
String
>
args
)
{
if
(
args
.
size
()
<
2
)
{
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <itemId|itemName> [amount]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <itemId|itemName> [amount]"
);
return
;
}
...
...
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