Fix typo in getHumanReadableName across commands and services

This commit is contained in:
akastijn 2026-06-27 22:04:17 +02:00
parent ca7b6f1152
commit 29c46ba485
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ public class RoundState extends SubCommand {
ROUND_STATE roundState = roundService.getRoundState(); ROUND_STATE roundState = roundService.getRoundState();
commandSender.sendRichMessage(Messages.ROUND_STATE.ROUND_STATE, commandSender.sendRichMessage(Messages.ROUND_STATE.ROUND_STATE,
Placeholder.parsed("round_state", Placeholder.parsed("round_state",
roundState == null ? "null" : roundState.getHumandReadableName())); roundState == null ? "null" : roundState.getHumanReadableName()));
return true; return true;
} }

View File

@ -24,7 +24,7 @@ public class StartRound extends SubCommand {
round.startRound(); round.startRound();
} else { } else {
commandSender.sendRichMessage(Messages.START_ROUND.CAN_NOT_START_ROUND, commandSender.sendRichMessage(Messages.START_ROUND.CAN_NOT_START_ROUND,
Placeholder.parsed("round_state", roundState.getHumandReadableName())); Placeholder.parsed("round_state", roundState.getHumanReadableName()));
} }
return true; return true;
} }

View File

@ -17,7 +17,7 @@ public enum ROUND_STATE {
return Optional.of(values()[ordinal() + 1]); return Optional.of(values()[ordinal() + 1]);
} }
public String getHumandReadableName() { public String getHumanReadableName() {
return switch (this) { return switch (this) {
case PLAYER_REGISTRATION -> "Player Registration"; case PLAYER_REGISTRATION -> "Player Registration";
case COUNTDOWN -> "Countdown"; case COUNTDOWN -> "Countdown";

View File

@ -127,7 +127,7 @@ public class RoundService implements RoundListener {
}); });
startFreeze(); startFreeze();
} }
Bukkit.broadcast(MiniMessage.miniMessage().deserialize(Messages.GAME.NEXT_STATE, Placeholder.parsed("state", roundState.getHumandReadableName()))); Bukkit.broadcast(MiniMessage.miniMessage().deserialize(Messages.GAME.NEXT_STATE, Placeholder.parsed("round", roundState.getHumanReadableName())));
} }
private void stopFreeze() { private void stopFreeze() {