From 8ab0c378bb6936e2740ae6f04d48181793abaf26 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 23 Apr 2024 14:44:40 +0200 Subject: [PATCH] Fixes some error messages displayed as successes --- .../net/knarcraft/launchpad/command/LaunchpadCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/knarcraft/launchpad/command/LaunchpadCommand.java b/src/main/java/net/knarcraft/launchpad/command/LaunchpadCommand.java index 7f4360f..ea4d146 100644 --- a/src/main/java/net/knarcraft/launchpad/command/LaunchpadCommand.java +++ b/src/main/java/net/knarcraft/launchpad/command/LaunchpadCommand.java @@ -106,7 +106,7 @@ public class LaunchpadCommand implements CommandExecutor { private boolean checkLaunchpad(@NotNull Player player, @NotNull StringFormatter stringFormatter) { Block targetBlock = player.getTargetBlockExact(7); if (targetBlock == null) { - stringFormatter.displaySuccessMessage(player, LaunchpadMessage.ERROR_NOT_LOOKING_AT_BLOCK); + stringFormatter.displayErrorMessage(player, LaunchpadMessage.ERROR_NOT_LOOKING_AT_BLOCK); return false; } LaunchpadBlock launchpadBlock = LaunchpadBlockHandler.getLaunchpadBlock(targetBlock); @@ -116,7 +116,7 @@ public class LaunchpadCommand implements CommandExecutor { if (!Launchpad.getInstance().getConfiguration().isNotLaunchpadMaterial(targetBlock.getType())) { stringFormatter.displaySuccessMessage(player, new LaunchpadBlock(targetBlock, true).toString()); } else { - stringFormatter.displaySuccessMessage(player, LaunchpadMessage.ERROR_NO_LAUNCHPAD); + stringFormatter.displayErrorMessage(player, LaunchpadMessage.ERROR_NO_LAUNCHPAD); } } return true;