Beta
Provides an adaptable interface for callers to subscribe to an event that fires when /script event command is called.
Optional
This function can't be called in read-only mode.
This function can throw errors.
Provides an adaptable interface for callers to subscribe to an event that fires when /script event command is called.