From 8fc77d2c70ca136edbb5186c49d9b4a9930b8e42 Mon Sep 17 00:00:00 2001 From: Tigerpanzer_02 <37453987+Tigerpanzer02@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:09:09 +0200 Subject: [PATCH] Fixed NPE on command usage /pluginindicator stop --- .../classic/commands/arguments/admin/arena/StopArgument.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/commands/arguments/admin/arena/StopArgument.java b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/commands/arguments/admin/arena/StopArgument.java index 3066e8c7..00b66728 100644 --- a/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/commands/arguments/admin/arena/StopArgument.java +++ b/MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/commands/arguments/admin/arena/StopArgument.java @@ -48,7 +48,7 @@ public void execute(CommandSender sender, String[] args) { return; } if(arena.getArenaState() != ArenaState.ENDING) { - registry.getPlugin().getArenaManager().stopGame(false, arena); + registry.getPlugin().getArenaManager().stopGame(true, arena); new MessageBuilder("COMMANDS_COMMAND_EXECUTED").asKey().send(sender); } }