TF-EssentialsX/Essentials/src/com/earth2me/essentials/commands/Commandantioch.java

28 lines
771 B
Java
Raw Normal View History

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;
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
{
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-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);
}
}