SkriptLang / skript-reflect

Powerful reflection utilities for Skript.
MIT License
56 stars 19 forks source link

Added sync-only entry in custom events (attempt #2) #95

Open Lotzyprod opened 3 months ago

Lotzyprod commented 3 months ago

In general, at the time of declaring a custom event, you can specify whether the skript should process this event only synchronously. ex:

custom event "evt"
   pattern: "my_evt"
   sync-only: true
  #sync only: true (second pattern)

Initially, now, any custom event can be processed asynchronously (for backwards compatability), unless 'sync only: true' is specified Why not allow async, I thought that since initially any event is now processed asynchronously (if possible), then sync only sounds more logical.