diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-11 13:03:10 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-11 13:03:10 +0200 |
commit | 26c9b34744760ae8bcaa311f7d55c84e888669db (patch) | |
tree | 913724f4c5eb7e5fa7d5eb45532d3e363773c9d1 /EssentialsProtect/src/com/earth2me/essentials/protect | |
parent | dfad01d558159d31de82f885cf0368f38a84d02d (diff) | |
parent | b974410dd9aab4ddf4098857c48b4088b599eb93 (diff) | |
download | Essentials-26c9b34744760ae8bcaa311f7d55c84e888669db.tar Essentials-26c9b34744760ae8bcaa311f7d55c84e888669db.tar.gz Essentials-26c9b34744760ae8bcaa311f7d55c84e888669db.tar.lz Essentials-26c9b34744760ae8bcaa311f7d55c84e888669db.tar.xz Essentials-26c9b34744760ae8bcaa311f7d55c84e888669db.zip |
Merge branch 'master' of https://github.com/essentials/Essentials
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java index 4d69fb31f..9f26b619f 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java @@ -7,6 +7,7 @@ import org.bukkit.event.player.PlayerListener; import org.bukkit.inventory.ItemStack; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; +import org.bukkit.event.block.Action; public class EssentialsProtectPlayerListener extends PlayerListener @@ -45,7 +46,7 @@ public class EssentialsProtectPlayerListener extends PlayerListener return; } - if (user.isAuthorized("essentials.protect.admin")) + if (user.isAuthorized("essentials.protect.admin") && event.getAction() == Action.RIGHT_CLICK_BLOCK) { final StringBuilder stringBuilder = new StringBuilder(); boolean first = true; |