diff --git a/pom.xml b/pom.xml index f157758..9043c12 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cn.lunadeer EssentialsD - 1.17.1 + 1.17.2 jar EssentialsD diff --git a/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java b/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java index 744ee9b..ad277f9 100644 --- a/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java +++ b/src/main/java/cn/lunadeer/essentialsd/ChairEvent.java @@ -122,8 +122,10 @@ public class ChairEvent implements Listener { } Entity vehicle = event.getPlayer().getVehicle(); // Let players stand up when leaving the server. - if (vehicle instanceof ArmorStand) + if (vehicle instanceof ArmorStand) { vehicle.remove(); + event.getPlayer().teleportAsync(event.getPlayer().getLocation().add(0, EssentialsD.config.getChairSitHeight() * -1, 0)); + } } private ArmorStand dropSeat(Block chair) {