From 32fc475a8ae4a6f65ac6f1f4d107c170863f4d4a Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Mon, 11 Feb 2013 21:59:41 +0100 Subject: [PATCH] Fixed broken colored print for the create command. --- src/de/craftinc/gates/commands/CommandCreate.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/de/craftinc/gates/commands/CommandCreate.java b/src/de/craftinc/gates/commands/CommandCreate.java index f839342..9408d29 100644 --- a/src/de/craftinc/gates/commands/CommandCreate.java +++ b/src/de/craftinc/gates/commands/CommandCreate.java @@ -1,6 +1,5 @@ package de.craftinc.gates.commands; -import java.util.logging.Level; import org.bukkit.ChatColor; import org.bukkit.Location; @@ -36,13 +35,11 @@ public class CommandCreate extends BaseLocationCommand try { gate = Gate.create(id); - sendMessage("ChatColor.GREEN + Gate with id \"" + id + "\" was created."); + sendMessage(ChatColor.GREEN + "Gate with id '" + id + "' was created."); } catch (Exception e) { - sendMessage(ChatColor.RED + "Creating the gate failed! See server log for more information"); - Plugin.log(Level.WARNING, e.getMessage()); - e.printStackTrace(); + sendMessage(ChatColor.RED + "Creating the gate failed!" + e.getMessage() + "See server log for more information"); return; }