code cleanup.
This commit is contained in:
parent
0695b3e202
commit
81daa83f44
@ -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();
|
||||
|
@ -53,8 +53,6 @@ public class CommandUnhide extends BaseCommand
|
||||
catch (Exception e) {
|
||||
sendMessage(ChatColor.RED + e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user