mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 13:11:09 +00:00
Update NoStaminaCommand.java
This commit is contained in:
parent
71b53e0be4
commit
27b7ce7cc1
@ -9,7 +9,7 @@ import java.util.List;
|
|||||||
import static emu.grasscutter.utils.Language.translate;
|
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 {
|
public final class NoStaminaCommand implements CommandHandler {
|
||||||
@Override
|
@Override
|
||||||
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
||||||
@ -23,11 +23,11 @@ public final class NoStaminaCommand implements CommandHandler {
|
|||||||
stamina = false;
|
stamina = false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//toggled
|
// toggled
|
||||||
break;
|
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()));
|
CommandHandler.sendMessage(sender, translate(sender, "commands.nostamina.success", (stamina ? translate(sender, "commands.status.enabled") : translate(sender, "commands.status.disabled")), targetPlayer.getNickname()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user