From 6937ffacd4d7bf08712e548c085f53cec79f0f43 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 6 Jan 2015 20:20:20 +0000 Subject: [PATCH] SPIGOT-362: Add TeleportCause.SPECTATE By: Thinkofdeath --- .../java/org/bukkit/event/player/PlayerTeleportEvent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java index 7e2e1288c9..fa9c823032 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java @@ -55,6 +55,11 @@ public class PlayerTeleportEvent extends PlayerMoveEvent { * portal */ END_PORTAL, + /** + * Indicates the teleportation was caused by a player teleporting to a + * Entity/Player via the specatator menu + */ + SPECTATE, /** * Indicates the teleportation was caused by an event not covered by * this enum