diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-12-03 20:41:24 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-12-03 20:41:24 +0000 |
commit | 8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6 (patch) | |
tree | dea288d9d30a7aedef83c914811f82e1b8113387 | |
parent | 343618642b18b1059fb0b4961199307519c3a092 (diff) | |
download | Essentials-8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6.tar Essentials-8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6.tar.gz Essentials-8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6.tar.lz Essentials-8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6.tar.xz Essentials-8ce8764f6af696d48a0a135bb8dbc5a64cb9acf6.zip |
New Command /break, and new Permission: essentials.break.bedrock
Test #1188
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbreak.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java index 7528d6068..48c19e9e7 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java @@ -15,9 +15,9 @@ public class Commandbreak extends EssentialsCommand } @Override - public void run(Server server, User user, String commandLabel, String[] args) throws Exception + public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception { - Block block = user.getTargetBlock(null, 20); + final Block block = user.getTargetBlock(null, 20); if (block.getType() == Material.AIR) { throw new NoChargeException(); @@ -26,7 +26,7 @@ public class Commandbreak extends EssentialsCommand { throw new NoChargeException(); } - BlockBreakEvent event = new BlockBreakEvent(block, user); + final BlockBreakEvent event = new BlockBreakEvent(block, user); server.getPluginManager().callEvent(event); if (event.isCancelled()) { |