Essentials/Essentials/src/main/java/com/earth2me/essentials/commands/Commandantioch.java

26 lines
942 B
Java
Raw Normal View History

package com.earth2me.essentials.commands;
import com.earth2me.essentials.User;
2013-06-08 23:31:19 +02:00
import com.earth2me.essentials.utils.LocationUtil;
2011-11-18 18:42:26 +01:00
import org.bukkit.Location;
import org.bukkit.Server;
2011-06-23 15:02:05 +02:00
import org.bukkit.entity.TNTPrimed;
2012-10-06 04:31:34 +02:00
// This command has a in theme message that only shows if you supply a parameter #EasterEgg
2015-04-15 06:06:16 +02:00
public class Commandantioch extends EssentialsCommand {
public Commandantioch() {
super("antioch");
}
2015-04-15 06:06:16 +02:00
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
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.");
}
2015-04-15 06:06:16 +02:00
final Location loc = LocationUtil.getTarget(user.getBase());
loc.getWorld().spawn(loc, TNTPrimed.class);
}
}