Skip to content

Commit

Permalink
Fix /lightning ignoring essentials.lightning.others (#3671)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Sep 14, 2020
1 parent fde0665 commit 29d5ccf
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,8 +19,8 @@ public Commandlightning() {

@Override
public void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception {
if (args.length == 0) {
if (sender.isPlayer() || !sender.isAuthorized("essentials.lightning.others", ess)) {
if (args.length == 0 || !sender.isAuthorized("essentials.lightning.others", ess)) {
if (sender.isPlayer()) {
sender.getPlayer().getWorld().strikeLightning(sender.getPlayer().getTargetBlock(null, 600).getLocation());
return;
}
Expand Down

0 comments on commit 29d5ccf

Please sign in to comment.