diff --git a/src/main/java/emu/grasscutter/command/commands/NoStaminaCommand.java b/src/main/java/emu/grasscutter/command/commands/NoStaminaCommand.java index 3bba2306a..4a1ef8873 100644 --- a/src/main/java/emu/grasscutter/command/commands/NoStaminaCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/NoStaminaCommand.java @@ -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 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())); }