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
commit62ebf3db41418ba5e00806ea3aa45e2639b04a8d (patch)
treed2868ea386c35e6d6cc728748564d60552fbc0bf
parenta90b16be36ff8fb215993fa6c0d7786375b4b88f (diff)
downloadEssentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar
Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.gz
Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.lz
Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.xz
Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.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)