diff options
| author | Léo Kosman <leo.kosman@proton.me> | 2024-08-31 14:03:41 +0200 |
|---|---|---|
| committer | Léo Kosman <leo.kosman@proton.me> | 2024-08-31 14:03:41 +0200 |
| commit | 6f65825e1504a1090405685404e7cbc59bd0f44b (patch) | |
| tree | 73ab400eef0a6b451c045f997e6447608a87b37c /src/main/java | |
| parent | 07ec479ef0ed9d9cebf4af9c1e1e831d579a8bb6 (diff) | |
style: rename translation key
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/world/anhgelus/molehunt/Molehunt.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java index 9ae3bd1..86668e3 100644 --- a/src/main/java/world/anhgelus/molehunt/Molehunt.java +++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java @@ -125,7 +125,7 @@ public class Molehunt implements ModInitializer { if (game == null || !game.hasStarted()) { player.networkHandler.sendPacket(new OverlayMessageS2CPacket( - Text.translatable("commands.molehunt.stop.failed").formatted(Formatting.RED) + Text.translatable("commands.molehunt.error.game_not_started").formatted(Formatting.RED) )); } else { player.networkHandler.sendPacket(new OverlayMessageS2CPacket(Text.of(game.getShortRemainingText()))); @@ -142,7 +142,7 @@ public class Molehunt implements ModInitializer { )); command.then(literal("role").requires(ServerCommandSource::isExecutedByPlayer).executes(context -> { if (game == null || !game.hasStarted()) { - throw (new SimpleCommandExceptionType(Text.translatable("commands.molehunt.stop.failed"))).create(); + throw (new SimpleCommandExceptionType(Text.translatable("commands.molehunt.error.game_not_started"))).create(); } var source = context.getSource(); @@ -165,7 +165,7 @@ public class Molehunt implements ModInitializer { })); command.then(literal("stop").requires(source -> source.hasPermissionLevel(1)).executes(context -> { if (game == null || !game.hasStarted()) { - throw (new SimpleCommandExceptionType(Text.translatable("commands.molehunt.stop.failed"))).create(); + throw (new SimpleCommandExceptionType(Text.translatable("commands.molehunt.error.game_not_started"))).create(); } game.stop(); |
