diff --git a/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java b/src/main/java/fr/moribus/imageonmap/gui/MapDetailGui.java index f224b192..594154b9 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 void rename() { } catch (IllegalStateException e) { PluginLogger.error("Error while renaming map: ", e); + I.sendT(getPlayer(), "{ce}You are no longer allowed to do that."); + close(); } }