Fixed broken colored print for the create command.

This commit is contained in:
Tobias Ottenweller 2013-02-11 21:59:41 +01:00
parent 43f002032d
commit 32fc475a8a

View File

@ -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;
}