mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-17 23:47:40 +00:00
New Permission: essentials.lightning.others
With this permission you can use /lightning <player>, without only strike based on direction.
This commit is contained in:
parent
5c2622b390
commit
a40c936bcf
|
@ -24,7 +24,7 @@ public class Commandlightning extends EssentialsCommand
|
||||||
{
|
{
|
||||||
user = ess.getUser(((Player)sender));
|
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());
|
user.getWorld().strikeLightning(user.getTargetBlock(null, 600).getLocation());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue