@@ -28,7 +28,7 @@
|
||||
if (enumdirection != null) {
|
||||
+ // CraftBukkit start
|
||||
+ EntityTeleportEvent teleport = new EntityTeleportEvent(this.getBukkitEntity(), this.getBukkitEntity().getLocation(), new Location(this.level.getWorld(), blockposition1.getX(), blockposition1.getY(), blockposition1.getZ()));
|
||||
+ this.level.getServer().getPluginManager().callEvent(teleport);
|
||||
+ this.level.getCraftServer().getPluginManager().callEvent(teleport);
|
||||
+ if (!teleport.isCancelled()) {
|
||||
+ Location to = teleport.getTo();
|
||||
+ blockposition1 = new BlockPosition(to.getX(), to.getY(), to.getZ());
|
||||
|
||||
Reference in New Issue
Block a user