From 8cd4dc4e57bc76b11eb05609c74c2bdcbf27133e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 7 Sep 2018 20:33:08 +1000 Subject: [PATCH] SPIGOT-4350: Expand EntityTeleportEvent to /teleport command By: md_5 --- .../java/org/bukkit/event/entity/EntityTeleportEvent.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java index 619f8d4f79..9645b4bb9a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTeleportEvent.java @@ -6,8 +6,10 @@ import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; /** - * Thrown when a non-player entity (such as an Enderman) tries to teleport - * from one location to another. + * Thrown when a non-player entity is teleported from one location to another. + *
+ * This may be as a result of natural causes (Enderman, Shulker), pathfinding + * (Wolf), or commands (/teleport). */ public class EntityTeleportEvent extends EntityEvent implements Cancellable { private static final HandlerList handlers = new HandlerList();