aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/world/anhgelus/molehunt/Molehunt.java6
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();