还原部分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) -> {
|
Teleport.doTeleportSafely(player, to).thenAccept((success) -> {
|
||||||
if (!success) {
|
if (!success) {
|
||||||
Notification.warn(player, "传送失败,你将被传送到复活点");
|
Notification.warn(player, "传送失败,你将被传送到复活点");
|
||||||
player.teleport(player.getBedSpawnLocation() == null ?
|
player.teleportAsync(player.getBedSpawnLocation() == null ?
|
||||||
player.getWorld().getSpawnLocation() :
|
player.getWorld().getSpawnLocation() :
|
||||||
player.getBedSpawnLocation()
|
player.getBedSpawnLocation()
|
||||||
, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
, PlayerTeleportEvent.TeleportCause.PLUGIN);
|
||||||
|
Reference in New Issue
Block a user