From aeffe9de56eb01697b95730463d15e471c96ebaa Mon Sep 17 00:00:00 2001 From: LinTx Date: Fri, 20 Jan 2023 17:21:25 +0800 Subject: [PATCH] fix bug for 'https://www.spigotmc.org/threads/imageonmap.165265/page-17#post-4532866' --- src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java b/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java index f224b19..594154b 100644 --- a/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java +++ b/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java @@ -237,6 +237,8 @@ public class MapDetailGui extends ExplorerGui { } catch (IllegalStateException e) { PluginLogger.error("Error while renaming map: ", e); + I.sendT(getPlayer(), "{ce}You are no longer allowed to do that."); + close(); } }