Remove server auto-fetching due to instability

This commit is contained in:
William278 committed 2023-02-11 13:12:35 +00:00
1 parent d928ee6ade
commit eb4652d6ff
17 files changed
+43 -161

No files matched your search

@@ -94,6 +94,6 @@ public class NormalDistributionEngine extends RandomTeleportEngine {
return Optional.empty();
}
}
return location.map(resolved -> new Position(resolved, plugin.getPluginServer()));
return location.map(resolved -> new Position(resolved, plugin.getServerName()));
}
}
@@ -50,10 +50,10 @@ public abstract class RandomTeleportEngine {
if (!spawn.worldUuid.equals(world.uuid.toString())) {
return Optional.empty();
}
return spawn.getPosition(plugin.getPluginServer());
return spawn.getPosition(plugin.getServerName());
})
.orElse(new Position(0d, 128d, 0d, 0f, 0f,
world, plugin.getPluginServer()));
world, plugin.getServerName()));
}
/**