Class ExprCommandSender

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.command.CommandSender>
ch.njol.skript.expressions.ExprCommandSender
All Implemented Interfaces:
Debuggable, DefaultExpression<org.bukkit.command.CommandSender>, Expression<org.bukkit.command.CommandSender>, SyntaxElement

@Name("Command Sender") @Description({"The player or the console who sent a command. Mostly useful in <a href=\'commands\'>commands</a> and <a href=\'events.html#command\'>command events</a>.","If the command sender is a command block, its location can be retrieved by using %block\'s location%"}) @Examples({"make the command sender execute \"/say hi!\"","on command:","\tlog \"%executor% used command /%command% %arguments%\" to \"commands.log\""}) @Since("2.0") @Events("command") public class ExprCommandSender extends EventValueExpression<org.bukkit.command.CommandSender>
  • Constructor Details

    • ExprCommandSender

      public ExprCommandSender()
  • 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.command.CommandSender>
      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