Class EffSecSuppressWarnings

All Implemented Interfaces:
Debuggable, SyntaxElement, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Locally Suppress Warning") @Description("Suppresses target warnings from the current script.") @Example("locally suppress missing conjunction warnings") @Example("suppress the variable save warnings") @Since({"2.3","2.17 (suppressing in a section)"}) public class EffSecSuppressWarnings extends EffectSection
  • Constructor Details

    • EffSecSuppressWarnings

      public EffSecSuppressWarnings()
  • Method Details

    • register

      public static void register(SyntaxRegistry syntaxRegistry)
    • init

      public boolean init(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult, @Nullable @Nullable SectionNode sectionNode, @Nullable @Nullable List<TriggerItem> triggerItems)
      Specified by:
      init in class EffectSection
    • walk

      @Nullable protected @Nullable TriggerItem walk(org.bukkit.event.Event event)
      Description copied from class: TriggerItem
      Executes this item and returns the next item to run.

      Overriding classes must call TriggerItem.debug(Event, boolean). If this method is overridden, TriggerItem.run(Event) is not used anymore and can be ignored.

      Specified by:
      walk in class TriggerSection
      Parameters:
      event - The event
      Returns:
      The next item to run or null to stop execution
    • toString

      public String toString(@Nullable @Nullable org.bukkit.event.Event event, boolean debug)
      Parameters:
      event - The event to get information from. 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