mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
Fix Spawner
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1580 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
e94a01b149
commit
aef2dd35d6
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import org.bukkit.Material;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.CreatureSpawner;
|
import org.bukkit.block.CreatureSpawner;
|
||||||
|
import org.bukkit.craftbukkit.block.CraftCreatureSpawner;
|
||||||
import org.bukkit.entity.CreatureType;
|
import org.bukkit.entity.CreatureType;
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@ public class Commandspawner extends EssentialsCommand
|
||||||
charge(user);
|
charge(user);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
((CreatureSpawner)target).setCreatureType(CreatureType.fromName(args[0]));
|
new CraftCreatureSpawner(target).setCreatureType(CreatureType.fromName(args[0]));
|
||||||
}
|
}
|
||||||
catch (Throwable ex)
|
catch (Throwable ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue