From a4a87fe75bf3ac6b1a65ce0c3872b758860b83d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?sh=C3=A4dam?= <47268949+supahero1@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:11:33 +0200 Subject: [PATCH] Don't send success upon failure --- .../emu/grasscutter/command/commands/EnterDungeonCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/command/commands/EnterDungeonCommand.java b/src/main/java/emu/grasscutter/command/commands/EnterDungeonCommand.java index 33e25dca3..b2d21a1b1 100644 --- a/src/main/java/emu/grasscutter/command/commands/EnterDungeonCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/EnterDungeonCommand.java @@ -26,10 +26,11 @@ public final class EnterDungeonCommand implements CommandHandler { } boolean result = targetPlayer.getServer().getDungeonManager().enterDungeon(targetPlayer.getSession().getPlayer(), 0, dungeonId); - CommandHandler.sendMessage(sender, translate(sender, "commands.enter_dungeon.changed", dungeonId)); if (!result) { CommandHandler.sendMessage(sender, translate(sender, "commands.enter_dungeon.not_found_error")); + } else { + CommandHandler.sendMessage(sender, translate(sender, "commands.enter_dungeon.changed", dungeonId)); } } catch (Exception e) { CommandHandler.sendMessage(sender, translate(sender, "commands.enter_dungeon.usage"));