Fixed broken colored print for the create command.
This commit is contained in:
parent
43f002032d
commit
32fc475a8a
@ -1,6 +1,5 @@
|
|||||||
package de.craftinc.gates.commands;
|
package de.craftinc.gates.commands;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@ -36,13 +35,11 @@ public class CommandCreate extends BaseLocationCommand
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
gate = Gate.create(id);
|
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)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
sendMessage(ChatColor.RED + "Creating the gate failed! See server log for more information");
|
sendMessage(ChatColor.RED + "Creating the gate failed!" + e.getMessage() + "See server log for more information");
|
||||||
Plugin.log(Level.WARNING, e.getMessage());
|
|
||||||
e.printStackTrace();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user