diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-03-11 20:58:54 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-03-11 20:58:54 +0000 |
commit | a40c936bcff0a05887d3acc9ab096aaab4b9df2d (patch) | |
tree | 47f345438b17181a2d4996198b2f9ccff9375de6 | |
parent | 5c2622b39051846f02d44638fbe8b37aa06fe64c (diff) | |
download | Essentials-a40c936bcff0a05887d3acc9ab096aaab4b9df2d.tar Essentials-a40c936bcff0a05887d3acc9ab096aaab4b9df2d.tar.gz Essentials-a40c936bcff0a05887d3acc9ab096aaab4b9df2d.tar.lz Essentials-a40c936bcff0a05887d3acc9ab096aaab4b9df2d.tar.xz Essentials-a40c936bcff0a05887d3acc9ab096aaab4b9df2d.zip |
New Permission: essentials.lightning.others
With this permission you can use /lightning <player>, without only strike based on direction.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandlightning.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandlightning.java b/Essentials/src/com/earth2me/essentials/commands/Commandlightning.java index be9ac61f5..810ef0b33 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandlightning.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandlightning.java @@ -24,7 +24,7 @@ public class Commandlightning extends EssentialsCommand { user = ess.getUser(((Player)sender)); } - if (args.length < 1 & user != null) + if ((args.length < 1 || !user.isAuthorized("essentials.lightning.others")) & user != null) { user.getWorld().strikeLightning(user.getTargetBlock(null, 600).getLocation()); return; |