Class ExprTeleportCause

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.event.player.PlayerTeleportEvent.TeleportCause>
ch.njol.skript.expressions.ExprTeleportCause
All Implemented Interfaces:
Debuggable, DefaultExpression<org.bukkit.event.player.PlayerTeleportEvent.TeleportCause>, Expression<org.bukkit.event.player.PlayerTeleportEvent.TeleportCause>, SyntaxElement

@Name("Teleport Cause") @Description("The <a href=\'classes.html#teleportcause\'>teleport cause</a> within a player <a href=\'events.html#teleport\'>teleport</a> event.") @Examples({"on teleport","\tteleport cause is nether portal, end portal or end gateway"}) @Since("2.2-dev35") public class ExprTeleportCause extends EventValueExpression<org.bukkit.event.player.PlayerTeleportEvent.TeleportCause>
  • Constructor Details

    • ExprTeleportCause

      public ExprTeleportCause()
  • Method Details

    • toString

      public String toString(@Nullable org.bukkit.event.Event e, boolean debug)
      Specified by:
      toString in interface Debuggable
      Overrides:
      toString in class EventValueExpression<org.bukkit.event.player.PlayerTeleportEvent.TeleportCause>
      Parameters:
      e - The event to get information to. This is always null if debug == false.
      debug - If true this should print more information, if false this should print what is shown to the end user
      Returns:
      String representation of this object