2015-03-22 17:38:04 +00:00
|
|
|
--- ../src-base/minecraft/org/bukkit/event/player/PlayerTeleportEvent.java
|
|
|
|
+++ ../src-work/minecraft/org/bukkit/event/player/PlayerTeleportEvent.java
|
2016-02-01 11:50:02 +00:00
|
|
|
@@ -55,11 +55,30 @@
|
2015-03-22 17:38:04 +00:00
|
|
|
* portal
|
|
|
|
*/
|
|
|
|
END_PORTAL,
|
|
|
|
+ // Cauldron start - added cause for mods
|
|
|
|
/**
|
|
|
|
+ * Indicates the teleportation was caused by a player entering a
|
|
|
|
+ * Mod portal
|
|
|
|
+ */
|
|
|
|
+ MOD,
|
|
|
|
+ // Cauldron end
|
2016-02-01 11:50:02 +00:00
|
|
|
+ // KCauldron start
|
|
|
|
+ DEATH,
|
|
|
|
+ // KCauldron end
|
2015-03-22 17:38:04 +00:00
|
|
|
+ /**
|
|
|
|
* Indicates the teleportation was caused by an event not covered by
|
|
|
|
* this enum
|
|
|
|
*/
|
2015-05-14 15:38:38 +00:00
|
|
|
UNKNOWN;
|
|
|
|
+
|
|
|
|
+ public boolean isPortal() {
|
2015-06-01 14:32:10 +00:00
|
|
|
+ switch(this) {
|
|
|
|
+ case NETHER_PORTAL:
|
|
|
|
+ case END_PORTAL:
|
2015-06-08 16:18:24 +00:00
|
|
|
+ return true;
|
2015-06-01 14:32:10 +00:00
|
|
|
+ }
|
|
|
|
+ return false;
|
2015-05-14 15:38:38 +00:00
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|