Class AsyncEffect

All Implemented Interfaces:
Debuggable, SyntaxElement

public abstract class AsyncEffect extends Effect
Effects that extend this class are ran asynchronously. Next trigger item will be ran in main server thread, as if there had been a delay before.

Majority of Skript and Minecraft APIs are not thread-safe, so be careful. Make sure to add set ch.njol.skript.ScriptLoader#hasDelayBefore to Kleenean.TRUE in the init method.

  • Constructor Details

    • AsyncEffect

      public AsyncEffect()
  • Method Details