mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 04:20:42 +01:00
Fix /spawner with PigZombie
This commit is contained in:
parent
a90b16be36
commit
62ebf3db41
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user