diff --git a/core/src/main/java/net/pl3x/map/core/command/commands/ResetMapCommand.java b/core/src/main/java/net/pl3x/map/core/command/commands/ResetMapCommand.java index 2b8ac1341..1094005a8 100644 --- a/core/src/main/java/net/pl3x/map/core/command/commands/ResetMapCommand.java +++ b/core/src/main/java/net/pl3x/map/core/command/commands/ResetMapCommand.java @@ -63,6 +63,12 @@ private void executeAsync(@NotNull CommandContext<@NotNull Sender> context) { Sender sender = context.sender(); World world = context.get("world"); + // TODO: Look into why it seems to inconsistently initialize the world twice when called as a player :/ + if (sender instanceof Sender.Player player) { + sender.sendMessage("Resetting the map in-game is temporarily disabled. Please run this command in the console instead."); + return; + } + TagResolver.Single worldPlaceholder = Placeholder.unparsed("world", world.getName()); sender.sendMessage(Lang.COMMAND_RESETMAP_BEGIN, worldPlaceholder);