mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2024-10-19 00:36:40 +08:00
还原部分api提高兼容性
This commit is contained in:
parent
9180a2a4e0
commit
36a32c1d7b
@ -636,7 +636,7 @@ public class PlayerEvents implements Listener {
|
||||
Teleport.doTeleportSafely(player, to).thenAccept((success) -> {
|
||||
if (!success) {
|
||||
Notification.warn(player, "传送失败,你将被传送到复活点");
|
||||
player.teleport(player.getBedSpawnLocation() == null ?
|
||||
player.teleportAsync(player.getBedSpawnLocation() == null ?
|
||||
player.getWorld().getSpawnLocation() :
|
||||
player.getBedSpawnLocation()
|
||||
, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
||||
|
Loading…
Reference in New Issue
Block a user