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
Hide 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 {
...
@@ -184,13 +184,13 @@ public final class PlayerCommands {
int
target
,
avatarID
,
level
=
1
;
int
target
,
avatarID
,
level
=
1
;
if
(
args
.
size
()
<
2
)
{
if
(
args
.
size
()
<
2
)
{
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <avatarId> [level]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <avatarId> [level]"
);
return
;
return
;
}
}
switch
(
args
.
size
())
{
switch
(
args
.
size
())
{
default
:
default
:
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <avatarId> [level]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <avatarId> [level]"
);
return
;
return
;
case
1
:
case
1
:
try
{
try
{
...
@@ -253,7 +253,7 @@ public final class PlayerCommands {
...
@@ -253,7 +253,7 @@ public final class PlayerCommands {
@Override
@Override
public
void
execute
(
List
<
String
>
args
)
{
public
void
execute
(
List
<
String
>
args
)
{
if
(
args
.
size
()
<
2
)
{
if
(
args
.
size
()
<
2
)
{
CommandHandler
.
sendMessage
(
null
,
"Usage: give <player> <itemId|itemName> [amount]"
);
CommandHandler
.
sendMessage
(
null
,
"Usage: give
char
<player> <itemId|itemName> [amount]"
);
return
;
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