From deb9821dfc27951fbe7f799041e7dbb0e1a95680 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 21 Apr 2011 17:03:44 +0000 Subject: New option for /spawnmob /spawnmob creeper:powered 1 Creates a creeper that is charged by a ligthning. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1259 e251c2fe-e539-e718-e476-b85c1f46cddb --- Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java b/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java index 9c0345bb6..f91537431 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java @@ -15,6 +15,7 @@ import org.bukkit.DyeColor; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.craftbukkit.CraftWorld; +import org.bukkit.craftbukkit.entity.CraftCreeper; import org.bukkit.craftbukkit.entity.CraftSheep; import org.bukkit.craftbukkit.entity.CraftSlime; import org.bukkit.craftbukkit.entity.CraftWolf; @@ -226,5 +227,8 @@ public class Commandspawnmob extends EssentialsCommand if ("Wolf".equalsIgnoreCase(type) && data.equalsIgnoreCase("angry")) { ((CraftWolf)spawned).setAngry(true); } + if ("Creeper".equalsIgnoreCase(type) && data.equalsIgnoreCase("powered")) { + ((CraftCreeper)spawned).setPowered(true); + } } } -- cgit v1.2.3