From 81daa83f44f577cc1adc3a274d496244cf98aa2a Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 23 Jun 2013 19:26:13 +0200 Subject: [PATCH] code cleanup. --- src/de/craftinc/gates/commands/CommandHide.java | 6 ++---- src/de/craftinc/gates/commands/CommandUnhide.java | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/de/craftinc/gates/commands/CommandHide.java b/src/de/craftinc/gates/commands/CommandHide.java index d4c1818..5eea78d 100644 --- a/src/de/craftinc/gates/commands/CommandHide.java +++ b/src/de/craftinc/gates/commands/CommandHide.java @@ -45,14 +45,12 @@ public class CommandHide extends BaseCommand public void perform() { - try - { + try { gate.setHidden(true); GateBlockChangeSender.updateGateBlocks(gate); 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"); Plugin.log(Level.WARNING, e.getMessage()); e.printStackTrace(); diff --git a/src/de/craftinc/gates/commands/CommandUnhide.java b/src/de/craftinc/gates/commands/CommandUnhide.java index 4485e22..aaad6f6 100644 --- a/src/de/craftinc/gates/commands/CommandUnhide.java +++ b/src/de/craftinc/gates/commands/CommandUnhide.java @@ -53,8 +53,6 @@ public class CommandUnhide extends BaseCommand catch (Exception e) { sendMessage(ChatColor.RED + e.getMessage()); } - - } } \ No newline at end of file