Class ExprLastResourcePackResponse

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.PropertyExpression<F,​T>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>
ch.njol.skript.expressions.ExprLastResourcePackResponse
All Implemented Interfaces:
Converter<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>, Debuggable, Expression<org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>, SyntaxElement

@Name("Last Resource Pack Response") @Description("Returns the last resource pack response received from a player.") @Examples("if player\'s last resource pack response is deny or download fail:") @Since("2.4") @RequiredPlugins("Paper 1.9 or newer") public class ExprLastResourcePackResponse extends SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>
  • Constructor Details

    • ExprLastResourcePackResponse

      public ExprLastResourcePackResponse()
  • Method Details

    • convert

      public @Nullable org.bukkit.event.player.PlayerResourcePackStatusEvent.Status convert(org.bukkit.entity.Player p)
      Description copied from interface: Converter
      Converts an object from the given to the desired type.
      Specified by:
      convert in interface Converter<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>
      Specified by:
      convert in class SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>
      Parameters:
      p - The object to convert.
      Returns:
      the converted object
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class SimplePropertyExpression<org.bukkit.entity.Player,​org.bukkit.event.player.PlayerResourcePackStatusEvent.Status>
    • getReturnType

      public Class<org.bukkit.event.player.PlayerResourcePackStatusEvent.Status> getReturnType()
      Description copied from interface: Expression
      Gets the return type of this expression.
      Returns:
      A supertype of any objects returned by Expression.getSingle(Event) and the component type of any arrays returned by Expression.getArray(Event)