diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-08 15:34:32 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-08 15:34:32 +0200 |
commit | 62ebf3db41418ba5e00806ea3aa45e2639b04a8d (patch) | |
tree | d2868ea386c35e6d6cc728748564d60552fbc0bf /Essentials | |
parent | a90b16be36ff8fb215993fa6c0d7786375b4b88f (diff) | |
download | Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.gz Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.lz Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.tar.xz Essentials-62ebf3db41418ba5e00806ea3aa45e2639b04a8d.zip |
Fix /spawner with PigZombie
Diffstat (limited to 'Essentials')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandspawner.java | 5 |
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) |