mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Fix teleport logic on single-server setups
This commit is contained in:
1 parent
9578bfdc9c
commit
b234adddbb
1 file changed
+1
-5
@@ -111,7 +111,7 @@ public class Teleport {
|
|||||||
executeEconomyActions();
|
executeEconomyActions();
|
||||||
|
|
||||||
final Position target = (Position) this.target;
|
final Position target = (Position) this.target;
|
||||||
if (plugin.getSettings().isCrossServer() && target.getServer().equals(plugin.getServerName())) {
|
if (!plugin.getSettings().isCrossServer() || target.getServer().equals(plugin.getServerName())) {
|
||||||
teleporter.teleportLocally(target, async);
|
teleporter.teleportLocally(target, async);
|
||||||
plugin.getLocales().getLocale("teleporting_complete")
|
plugin.getLocales().getLocale("teleporting_complete")
|
||||||
.ifPresent(teleporter::sendMessage);
|
.ifPresent(teleporter::sendMessage);
|
||||||
@@ -123,10 +123,6 @@ public class Teleport {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void teleport(@NotNull OnlineUser teleporter, @NotNull Position target) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private Optional<OnlineUser> resolveLocalTeleporter() throws TeleportationException {
|
private Optional<OnlineUser> resolveLocalTeleporter() throws TeleportationException {
|
||||||
if (this.teleporter instanceof Username username) {
|
if (this.teleporter instanceof Username username) {
|
||||||
|
|||||||
Reference in new issue
Block a user