2011-03-19 22:39:51 +00:00
|
|
|
package com.earth2me.essentials.commands;
|
|
|
|
|
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.Server;
|
|
|
|
import com.earth2me.essentials.User;
|
|
|
|
import com.earth2me.essentials.TargetBlock;
|
2011-11-18 12:06:59 +00:00
|
|
|
import com.earth2me.essentials.Util;
|
2011-06-23 13:02:05 +00:00
|
|
|
import org.bukkit.entity.TNTPrimed;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
public class Commandantioch extends EssentialsCommand
|
|
|
|
{
|
|
|
|
public Commandantioch()
|
|
|
|
{
|
|
|
|
super("antioch");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-06-23 13:02:05 +00:00
|
|
|
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-09-02 14:15:57 +00:00
|
|
|
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.");
|
2011-03-19 22:39:51 +00:00
|
|
|
|
2011-11-18 12:06:59 +00:00
|
|
|
final Location loc = Util.getTarget(user);
|
2011-06-23 13:02:05 +00:00
|
|
|
loc.getWorld().spawn(loc, TNTPrimed.class);
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|
|
|
|
}
|