This commit is contained in:
KHobbits 2013-10-18 00:04:17 +01:00
parent be31b1695d
commit 64e089e15b
12 changed files with 15 additions and 15 deletions

View file

@ -23,7 +23,7 @@ public class Commandlightning extends EssentialsLoopCommand
User user = null;
if (sender.isPlayer())
{
user = ess.getUser(((Player)sender));
user = ess.getUser(sender.getPlayer());
if ((args.length < 1 || user != null && !user.isAuthorized("essentials.lightning.others")))
{
user.getWorld().strikeLightning(user.getTargetBlock(null, 600).getLocation());