Commits

Thinkofname authored dd0fec4187a
SPIGOT-362: Add TeleportCause.SPECTATE
No tags

src/main/java/org/bukkit/event/player/PlayerTeleportEvent.java

Modified
48 48 /**
49 49 * Indicates the teleportation was caused by a player entering a
50 50 * Nether portal
51 51 */
52 52 NETHER_PORTAL,
53 53 /**
54 54 * Indicates the teleportation was caused by a player entering an End
55 55 * portal
56 56 */
57 57 END_PORTAL,
58 + /**
59 + * Indicates the teleportation was caused by a player teleporting to a
60 + * Entity/Player via the specatator menu
61 + */
62 + SPECTATE,
58 63 /**
59 64 * Indicates the teleportation was caused by an event not covered by
60 65 * this enum
61 66 */
62 67 UNKNOWN;
63 68 }
64 69
65 70 @Override
66 71 public HandlerList getHandlers() {
67 72 return handlers;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut