aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/world/anhgelus/molehunt/Molehunt.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/world/anhgelus/molehunt/Molehunt.java b/src/main/java/world/anhgelus/molehunt/Molehunt.java
index ad1fedd..49e775d 100644
--- a/src/main/java/world/anhgelus/molehunt/Molehunt.java
+++ b/src/main/java/world/anhgelus/molehunt/Molehunt.java
@@ -71,6 +71,7 @@ public class Molehunt implements ModInitializer {
command.then(literal("stop").requires(source -> source.hasPermissionLevel(1)).executes(context -> {
if (game == null || !game.hasStarted()) {
context.getSource().sendError(Text.of("Game has not started yet"));
+ return Command.SINGLE_SUCCESS;
}
game.stop();