summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2015-01-06 20:20:20 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2015-01-06 20:20:20 +0000
commitdd0fec4187a081e6ed362c51d786b33fa9ffde55 (patch)
treebdd965517db48a1eccbd210ec005fce84e72183e
parent52d02e1535e6d8472dc47be7d7186ec584df6bc5 (diff)
downloadbukkit-dd0fec4187a081e6ed362c51d786b33fa9ffde55.tar
bukkit-dd0fec4187a081e6ed362c51d786b33fa9ffde55.tar.gz
bukkit-dd0fec4187a081e6ed362c51d786b33fa9ffde55.tar.lz
bukkit-dd0fec4187a081e6ed362c51d786b33fa9ffde55.tar.xz
bukkit-dd0fec4187a081e6ed362c51d786b33fa9ffde55.zip
SPIGOT-362: Add TeleportCause.SPECTATE
-rw-r--r--src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java b/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java
index 7e2e1288..fa9c8230 100644
--- a/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java
+++ b/src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java
@@ -56,6 +56,11 @@ public class PlayerTeleportEvent extends PlayerMoveEvent {
*/
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
*/