summaryrefslogtreecommitdiffstats
path: root/nms-patches/CommandTeleport.patch
blob: 3b5763e9f15511e77e33c41948455ccb37a44eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/minecraft/server/CommandTeleport.java
+++ b/net/minecraft/server/CommandTeleport.java
@@ -116,9 +116,9 @@
         if (entity instanceof EntityPlayer) {
             entity.stopRiding();
             if (worldserver == entity.world) {
-                ((EntityPlayer) entity).playerConnection.a(d0, d1, d2, f, f1, set);
+                ((EntityPlayer) entity).playerConnection.a(d0, d1, d2, f, f1, set, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND); // CraftBukkit
             } else {
-                ((EntityPlayer) entity).a(worldserver, d0, d1, d2, f, f1);
+                ((EntityPlayer) entity).a(worldserver, d0, d1, d2, f, f1, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.COMMAND); // CraftBukkit
             }
 
             entity.setHeadRotation(f);