mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-16 18:56:56 +00:00
Command cleanup
This commit is contained in:
parent
e5c77c1aeb
commit
e54d73704e
36 changed files with 165 additions and 162 deletions
|
@ -4,6 +4,7 @@ import org.bukkit.Location;
|
|||
import org.bukkit.Server;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.TargetBlock;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.entity.TNTPrimed;
|
||||
|
||||
|
||||
|
@ -20,7 +21,7 @@ public class Commandantioch extends EssentialsCommand
|
|||
ess.broadcastMessage(user, "...lobbest thou thy Holy Hand Grenade of Antioch towards thy foe,");
|
||||
ess.broadcastMessage(user, "who being naughty in My sight, shall snuff it.");
|
||||
|
||||
final Location loc = new TargetBlock(user).getTargetBlock().getLocation();
|
||||
final Location loc = Util.getTarget(user);
|
||||
loc.getWorld().spawn(loc, TNTPrimed.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue