summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-08-08 15:34:32 +0200
committersnowleo <schneeleo@gmail.com>2011-08-08 15:34:32 +0200
commitfd67d5254deae16ef1a505f1a9e894df23321863 (patch)
treee4348e6c208653c2816c0d53f4c2b314275a6047
parent633113038bd219186dcd51d3816be07ad11ab6e1 (diff)
downloadEssentials-fd67d5254deae16ef1a505f1a9e894df23321863.tar
Essentials-fd67d5254deae16ef1a505f1a9e894df23321863.tar.gz
Essentials-fd67d5254deae16ef1a505f1a9e894df23321863.tar.lz
Essentials-fd67d5254deae16ef1a505f1a9e894df23321863.tar.xz
Essentials-fd67d5254deae16ef1a505f1a9e894df23321863.zip
Fix /spawner with PigZombie
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandspawner.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java b/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java
index 5e95bad65..ae92670ca 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandspawner.java
@@ -33,7 +33,10 @@ public class Commandspawner extends EssentialsCommand
charge(user);
try
{
- final String name = args[0].substring(0, 1).toUpperCase() + args[0].substring(1).toLowerCase();
+ String name = args[0].substring(0, 1).toUpperCase() + args[0].substring(1).toLowerCase();
+ if (name.equalsIgnoreCase("Pigzombie")) {
+ name = "PigZombie";
+ }
new CraftCreatureSpawner(target).setCreatureType(CreatureType.fromName(name));
}
catch (Throwable ex)