From 6416041d2233da8c6fc4a9ca0ffb738f2cbbfa08 Mon Sep 17 00:00:00 2001 From: ementalo Date: Thu, 31 Mar 2011 21:48:46 +0000 Subject: [PATCH] wolf spawn git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1051 e251c2fe-e539-e718-e476-b85c1f46cddb --- Essentials/src/com/earth2me/essentials/Mob.java | 8 ++++++-- .../com/earth2me/essentials/commands/Commandspawnmob.java | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/Mob.java b/Essentials/src/com/earth2me/essentials/Mob.java index 3c0d9bd1e..895fdf886 100644 --- a/Essentials/src/com/earth2me/essentials/Mob.java +++ b/Essentials/src/com/earth2me/essentials/Mob.java @@ -26,7 +26,8 @@ public enum Mob SPIDER("Spider", Enemies.ENEMY), SQUID("Squid", Enemies.FRIENDLY), ZOMBIE("Zombie", Enemies.ENEMY), - MONSTER("Monster", Enemies.ENEMY); + MONSTER("Monster", Enemies.ENEMY), + WOLF("Wolf", Enemies.NEUTRAL); public static final Logger logger = Logger.getLogger("Minecraft"); @@ -77,7 +78,10 @@ public enum Mob } } - @SuppressWarnings({"unchecked", "CallToThreadDumpStack"}) + @SuppressWarnings( + { + "unchecked", "CallToThreadDumpStack" + }) public CraftEntity spawn(Player player, Server server) throws MobException { try diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java b/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java index c1c883a75..51c114147 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandspawnmob.java @@ -33,7 +33,7 @@ public class Commandspawnmob extends EssentialsCommand if (args.length < 1) { user.sendMessage("§cUsage: /spawnmob [mob]<,mount><:size> "); - user.sendMessage("§7Mobs: Zombie PigZombie Skeleton Slime Chicken Pig Monster Spider Creeper Ghast Squid Giant Cow Sheep"); + user.sendMessage("§7Mobs: Zombie PigZombie Skeleton Slime Chicken Pig Monster Spider Creeper Ghast Squid Giant Cow Sheep Wolf"); return; }