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

@@ -178,7 +178,7 @@ public class Teleport {
}
// If the target position is local, finalize economy transactions and teleport the player
if (!plugin.getSettings().crossServer || target.server.equals(plugin.getPluginServer())) {
if (!plugin.getSettings().crossServer || target.server.equals(plugin.getServerName())) {
return teleporter.teleportLocally(target, plugin.getSettings().asynchronousTeleports);
}
@@ -118,7 +118,7 @@ public class TeleportBuilder {
* @return The {@link TeleportBuilder} instance
*/
public TeleportBuilder setTarget(@NotNull Location location) {
this.target = CompletableFuture.completedFuture(new Position(location, plugin.getPluginServer()));
this.target = CompletableFuture.completedFuture(new Position(location, plugin.getServerName()));
return this;
}