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(); } }