code cleanup.

This commit is contained in:
Tobias Ottenweller 2013-06-23 19:26:13 +02:00
parent 0695b3e202
commit 81daa83f44
2 changed files with 2 additions and 6 deletions

View File

@ -45,14 +45,12 @@ public class CommandHide extends BaseCommand
public void perform() public void perform()
{ {
try try {
{
gate.setHidden(true); gate.setHidden(true);
GateBlockChangeSender.updateGateBlocks(gate); GateBlockChangeSender.updateGateBlocks(gate);
sendMessage(ChatColor.GREEN + "The gate '" + gate.getId() + "' is now hidden."); sendMessage(ChatColor.GREEN + "The gate '" + gate.getId() + "' is now hidden.");
} }
catch (Exception e) catch (Exception e) {
{
sendMessage(ChatColor.RED + "Hiding the gate failed! See server log for more information"); sendMessage(ChatColor.RED + "Hiding the gate failed! See server log for more information");
Plugin.log(Level.WARNING, e.getMessage()); Plugin.log(Level.WARNING, e.getMessage());
e.printStackTrace(); e.printStackTrace();

View File

@ -53,8 +53,6 @@ public class CommandUnhide extends BaseCommand
catch (Exception e) { catch (Exception e) {
sendMessage(ChatColor.RED + e.getMessage()); sendMessage(ChatColor.RED + e.getMessage());
} }
} }
} }