Remove unneeded teleportation in clans hubs

This commit is contained in:
AlexTheCoder 2016-08-30 03:27:11 -04:00
parent ba02dea404
commit 8397f53d39

View File

@ -176,16 +176,6 @@ public class HubManager extends MiniPlugin
_portal = portal; _portal = portal;
_spawn = new Location(UtilWorld.getWorld("world"), 0.5, 179, 0.5, -90f, 0f); _spawn = new Location(UtilWorld.getWorld("world"), 0.5, 179, 0.5, -90f, 0f);
runSyncLater(() ->
{
for (Entity e : _spawn.getWorld().getEntities())
{
if (npcManager.getNpcByEntity(e) != null)
{
e.teleport(new Location(e.getWorld(), e.getLocation().getX(), e.getLocation().getY(), e.getLocation().getZ(), 90f, 0f));
}
}
}, 120L);
((CraftWorld) _spawn.getWorld()).getHandle().spigotConfig.itemMerge = 0; ((CraftWorld) _spawn.getWorld()).getHandle().spigotConfig.itemMerge = 0;
new WorldManager(this); new WorldManager(this);