mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Don't use timed teleport for console commands
This commit is contained in:
1 parent
9b965ac1cd
commit
66e9eaf2b2
3 files changed
+3
-3
No files matched your search
@@ -79,7 +79,7 @@ public class HomeCommand extends CommandBase implements TabCompletable, ConsoleE
|
|||||||
|
|
||||||
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to "
|
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to "
|
||||||
+ home.owner.username + "." + home.meta.name);
|
+ home.owner.username + "." + home.meta.name);
|
||||||
plugin.getTeleportManager().timedTeleport(playerToTeleport, home)
|
plugin.getTeleportManager().teleport(playerToTeleport, home)
|
||||||
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class PublicHomeCommand extends CommandBase implements TabCompletable, Co
|
|||||||
|
|
||||||
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to "
|
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to "
|
||||||
+ home.owner.username + "." + home.meta.name);
|
+ home.owner.username + "." + home.meta.name);
|
||||||
plugin.getTeleportManager().timedTeleport(playerToTeleport, home)
|
plugin.getTeleportManager().teleport(playerToTeleport, home)
|
||||||
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class WarpCommand extends CommandBase implements TabCompletable, ConsoleE
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to " + warp.meta.name);
|
plugin.getLoggingAdapter().log(Level.INFO, "Teleporting " + playerToTeleport.username + " to " + warp.meta.name);
|
||||||
plugin.getTeleportManager().timedTeleport(playerToTeleport, warp)
|
plugin.getTeleportManager().teleport(playerToTeleport, warp)
|
||||||
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
.thenAccept(result -> plugin.getTeleportManager().finishTeleport(playerToTeleport, result));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user