Class CondIsScriptCommand

java.lang.Object
ch.njol.skript.lang.TriggerItem
ch.njol.skript.lang.Statement
ch.njol.skript.lang.Condition
ch.njol.skript.conditions.base.PropertyCondition<String>
org.skriptlang.skript.bukkit.command.elements.conditions.CondIsScriptCommand
All Implemented Interfaces:
Debuggable, Simplifiable<Condition>, SyntaxElement, Predicate<String>, Conditional<org.bukkit.event.Event>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Is a Script Command") @Description("Checks whether a command (string label) is a script command (one registered in a script).") @Example("on command:\n\tcommand is not a script command\n\t# do something only for non-custom commands\n") @Since("2.6") public class CondIsScriptCommand extends ch.njol.skript.conditions.base.PropertyCondition<String>
  • Constructor Details

    • CondIsScriptCommand

      public CondIsScriptCommand()
  • Method Details

    • register

      public static void register(SyntaxRegistry syntaxRegistry)
    • check

      public boolean check(String command)
      Specified by:
      check in class ch.njol.skript.conditions.base.PropertyCondition<String>
    • getPropertyName

      protected String getPropertyName()
      Specified by:
      getPropertyName in class ch.njol.skript.conditions.base.PropertyCondition<String>