mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Remove server auto-fetching due to instability
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user