From 0695b3e202aba35f565b77588aead6c6e92ee80d Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 23 Jun 2013 19:09:20 +0200 Subject: [PATCH] Improved error messages when setting a gate location. --- src/de/craftinc/gates/commands/CommandLocation.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/craftinc/gates/commands/CommandLocation.java b/src/de/craftinc/gates/commands/CommandLocation.java index 0f2f76d..48099be 100644 --- a/src/de/craftinc/gates/commands/CommandLocation.java +++ b/src/de/craftinc/gates/commands/CommandLocation.java @@ -18,7 +18,6 @@ package de.craftinc.gates.commands; import java.util.Set; -import java.util.logging.Level; import de.craftinc.gates.util.GateBlockChangeSender; import org.bukkit.ChatColor; @@ -83,9 +82,10 @@ public class CommandLocation extends BaseLocationCommand } catch (Exception e) { - sendMessage(ChatColor.RED + "Setting the location for the gate failed! See server log for more information"); - Plugin.log(Level.WARNING, e.getMessage()); - e.printStackTrace(); + GateBlockChangeSender.updateGateBlocks(gate); + + sendMessage(ChatColor.RED + "There seems to be no frame at your new location! The gate got closed!" + ChatColor.AQUA + "You should build a frame now and execute:"); + sendMessage(new CommandOpen().getUsageTemplate(true, true)); } }