mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-06 05:51:35 +00:00
Cleanup
This commit is contained in:
parent
be31b1695d
commit
64e089e15b
12 changed files with 15 additions and 15 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue