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
27b7ce7c
Commit
27b7ce7c
authored
Jun 02, 2022
by
Magix
Committed by
GitHub
Jun 02, 2022
Browse files
Update NoStaminaCommand.java
parent
71b53e0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/NoStaminaCommand.java
View file @
27b7ce7c
...
...
@@ -9,7 +9,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"nostamina"
,
usage
=
"nostamina [on|off|toggle]"
,
aliases
=
{
"ns"
},
permission
=
"player.nostamina"
,
permissionTargeted
=
"player.nostamina.others"
,
description
=
"commands.nostamina.description"
)
@Command
(
label
=
"nostamina"
,
usage
=
"nostamina [on|off|toggle]"
,
aliases
=
{
"ns"
},
permission
=
"player.nostamina"
,
permissionTargeted
=
"player.nostamina.others"
,
description
=
"commands.nostamina.description"
)
public
final
class
NoStaminaCommand
implements
CommandHandler
{
@Override
public
void
execute
(
Player
sender
,
Player
targetPlayer
,
List
<
String
>
args
)
{
...
...
@@ -23,11 +23,11 @@ public final class NoStaminaCommand implements CommandHandler {
stamina
=
false
;
break
;
default
:
//toggled
//
toggled
break
;
}
}
targetPlayer
.
setStamina
(
stamina
);
//Set
targetPlayer
.
setStamina
(
stamina
);
//Set
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.nostamina.success"
,
(
stamina
?
translate
(
sender
,
"commands.status.enabled"
)
:
translate
(
sender
,
"commands.status.disabled"
)),
targetPlayer
.
getNickname
()));
}
...
...
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