diff --git a/core/src/main/java/dev/geco/gsit/events/EntityEvents.java b/core/src/main/java/dev/geco/gsit/events/EntityEvents.java index 0b78d110..5387ef97 100644 --- a/core/src/main/java/dev/geco/gsit/events/EntityEvents.java +++ b/core/src/main/java/dev/geco/gsit/events/EntityEvents.java @@ -63,9 +63,9 @@ public void EDisE(EntityDismountEvent Event) { Entity bottom = GPM.getPassengerUtil().getBottomEntity(Event.getDismounted()); - if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player && GPM.getPackageUtil() != null) GPM.getEntityUtil().posEntity(Event.getEntity(), bottom.getLocation()); + if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player && GPM.getPackageUtil() != null) Bukkit.getPlayer(Event.getEntity().getUniqueId()).teleportAsync(bottom.getLocation()); - if(Event.getDismounted().getScoreboardTags().contains(GPM.NAME + "_PlayerSeatEntity") && GPM.getPackageUtil() == null) GPM.getEntityUtil().posEntity(Event.getDismounted(), bottom.getLocation()); + if(Event.getDismounted().getScoreboardTags().contains(GPM.NAME + "_PlayerSeatEntity") && GPM.getPackageUtil() == null) Bukkit.getPlayer(Event.getDismounted().getUniqueId()).teleportAsync(bottom.getLocation()); GPM.getPlayerSitManager().stopPlayerSit(Event.getDismounted(), GetUpReason.GET_UP); diff --git a/core/src/main/java/dev/geco/gsit/events/deprecated/EntityEvents.java b/core/src/main/java/dev/geco/gsit/events/deprecated/EntityEvents.java index b49780ec..aab3abf8 100644 --- a/core/src/main/java/dev/geco/gsit/events/deprecated/EntityEvents.java +++ b/core/src/main/java/dev/geco/gsit/events/deprecated/EntityEvents.java @@ -64,9 +64,9 @@ public void EDisE(EntityDismountEvent Event) { Entity bottom = GPM.getPassengerUtil().getBottomEntity(Event.getDismounted()); - if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player && GPM.getPackageUtil() != null) GPM.getEntityUtil().posEntity(Event.getEntity(), bottom.getLocation()); + if(GPM.getCManager().PS_BOTTOM_RETURN && Event.getEntity().isValid() && Event.getEntity() instanceof Player && GPM.getPackageUtil() != null) Bukkit.getPlayer(Event.getEntity().getUniqueId()).teleportAsync(bottom.getLocation()); - if(Event.getDismounted().getScoreboardTags().contains(GPM.NAME + "_PlayerSeatEntity") && GPM.getPackageUtil() == null) GPM.getEntityUtil().posEntity(Event.getDismounted(), bottom.getLocation()); + if(Event.getDismounted().getScoreboardTags().contains(GPM.NAME + "_PlayerSeatEntity") && GPM.getPackageUtil() == null) Bukkit.getPlayer(Event.getDismounted().getUniqueId()).teleportAsync(bottom.getLocation()); GPM.getPlayerSitManager().stopPlayerSit(Event.getDismounted(), GetUpReason.GET_UP);