Fix typo in getHumanReadableName across commands and services
This commit is contained in:
parent
ca7b6f1152
commit
29c46ba485
|
|
@ -20,7 +20,7 @@ public class RoundState extends SubCommand {
|
|||
ROUND_STATE roundState = roundService.getRoundState();
|
||||
commandSender.sendRichMessage(Messages.ROUND_STATE.ROUND_STATE,
|
||||
Placeholder.parsed("round_state",
|
||||
roundState == null ? "null" : roundState.getHumandReadableName()));
|
||||
roundState == null ? "null" : roundState.getHumanReadableName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public class StartRound extends SubCommand {
|
|||
round.startRound();
|
||||
} else {
|
||||
commandSender.sendRichMessage(Messages.START_ROUND.CAN_NOT_START_ROUND,
|
||||
Placeholder.parsed("round_state", roundState.getHumandReadableName()));
|
||||
Placeholder.parsed("round_state", roundState.getHumanReadableName()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public enum ROUND_STATE {
|
|||
return Optional.of(values()[ordinal() + 1]);
|
||||
}
|
||||
|
||||
public String getHumandReadableName() {
|
||||
public String getHumanReadableName() {
|
||||
return switch (this) {
|
||||
case PLAYER_REGISTRATION -> "Player Registration";
|
||||
case COUNTDOWN -> "Countdown";
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ public class RoundService implements RoundListener {
|
|||
});
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user