diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkittycannon.java b/Essentials/src/com/earth2me/essentials/commands/Commandkittycannon.java deleted file mode 100644 index 507e1d7d3..000000000 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkittycannon.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.earth2me.essentials.commands; - -import com.earth2me.essentials.Mob; -import com.earth2me.essentials.User; -import java.util.Random; -import org.bukkit.Location; -import org.bukkit.Server; -import org.bukkit.entity.Ocelot; - -// This command is not documented on the wiki #EasterEgg -public class Commandkittycannon extends EssentialsCommand -{ - private static final Random random = new Random(); - - public Commandkittycannon() - { - super("kittycannon"); - } - - @Override - protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception - { - final Mob cat = Mob.OCELOT; - final Ocelot ocelot = (Ocelot)cat.spawn(user.getWorld(), server, user.getBase().getEyeLocation()); - if (ocelot == null) - { - return; - } - final int i = random.nextInt(Ocelot.Type.values().length); - ocelot.setCatType(Ocelot.Type.values()[i]); - ocelot.setTamed(true); - ocelot.setBaby(); - ocelot.setVelocity(user.getBase().getEyeLocation().getDirection().multiply(2)); - - class KittyCannonExplodeTask implements Runnable - { - @Override - public void run() - { - final Location loc = ocelot.getLocation(); - ocelot.remove(); - loc.getWorld().createExplosion(loc, 0F); - } - } - ess.scheduleSyncDelayedTask(new KittyCannonExplodeTask(), 20); - - } -} diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 5677924b6..f05b2a7c1 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -206,10 +206,6 @@ commands: description: Obtains the specified kit or views all available kits. usage: / [kit] [player] aliases: [ekit,kits,ekits] - kittycannon: - description: Throw an exploding kitten at your opponent. - usage: / - aliases: [ekittycannon] lightning: description: The power of Thor. Strike at cursor or player. usage: / [player] [power]