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

30 lines
853 B
Java
Raw Normal View History

package com.earth2me.essentials.commands;
import com.earth2me.essentials.User;
2011-11-18 12:06:59 +00:00
import com.earth2me.essentials.Util;
2011-11-18 17:42:26 +00:00
import org.bukkit.Location;
import org.bukkit.Server;
2011-06-23 13:02:05 +00:00
import org.bukkit.entity.TNTPrimed;
2012-10-06 02:31:34 +00:00
// This command has a in theme message that only shows if you supply a parameter #EasterEgg
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
{
2012-03-02 17:03:34 +00:00
if (args.length > 0)
{
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);
}
}