summaryrefslogtreecommitdiffstats
path: root/EssentialsAntiBuild/src
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-24 03:10:54 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-24 03:16:15 +0100
commitf2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74 (patch)
treef3d56c3d3c0ab666f0b0e1c8fd46583bdb0cc731 /EssentialsAntiBuild/src
parentf1930e76d6940bb3ff1e526c7eff8dfc51a60e99 (diff)
downloadEssentials-f2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74.tar
Essentials-f2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74.tar.gz
Essentials-f2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74.tar.lz
Essentials-f2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74.tar.xz
Essentials-f2b4bb00b69d91e2c9f1fe4ee38ae89a43197c74.zip
Minor cleanup
Diffstat (limited to 'EssentialsAntiBuild/src')
-rw-r--r--EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java
index f061beed4..e57ba8864 100644
--- a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java
+++ b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java
@@ -32,7 +32,7 @@ public class EssentialsAntiBuildListener implements Listener
this.ess = prot.getEssentialsConnect().getEssentials();
}
- private boolean metaPermCheck(User user, String action, Block block)
+ private boolean metaPermCheck(final User user, final String action, final Block block)
{
if (block == null)
{
@@ -41,13 +41,13 @@ public class EssentialsAntiBuildListener implements Listener
return metaPermCheck(user, action, block.getTypeId(), block.getData());
}
- private boolean metaPermCheck(User user, String action, int blockId)
+ private boolean metaPermCheck(final User user, final String action, final int blockId)
{
final String blockPerm = "essentials.build." + action + "." + blockId;
return user.isAuthorized(blockPerm);
}
- private boolean metaPermCheck(User user, String action, int blockId, byte data)
+ private boolean metaPermCheck(final User user, final String action, final int blockId, final byte data)
{
final String blockPerm = "essentials.build." + action + "." + blockId;
final String dataPerm = blockPerm + ":" + data;
@@ -141,7 +141,7 @@ public class EssentialsAntiBuildListener implements Listener
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onPaintingBreak(PaintingBreakByEntityEvent event)
+ public void onPaintingBreak(final PaintingBreakByEntityEvent event)
{
final Entity entity = event.getRemover();
if (entity instanceof Player)
@@ -160,7 +160,7 @@ public class EssentialsAntiBuildListener implements Listener
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onBlockPistonExtend(BlockPistonExtendEvent event)
+ public void onBlockPistonExtend(final BlockPistonExtendEvent event)
{
for (Block block : event.getBlocks())
{
@@ -173,7 +173,7 @@ public class EssentialsAntiBuildListener implements Listener
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onBlockPistonRetract(BlockPistonRetractEvent event)
+ public void onBlockPistonRetract(final BlockPistonRetractEvent event)
{
if (!event.isSticky())
{
@@ -272,7 +272,7 @@ public class EssentialsAntiBuildListener implements Listener
}
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
- public void onPlayerDropItem(PlayerDropItemEvent event)
+ public void onPlayerDropItem(final PlayerDropItemEvent event)
{
final User user = ess.getUser(event.getPlayer());