pandorabox-io / pandorabox_custom

pandorabox server customization mod
https://pandorabox.io
MIT License
4 stars 8 forks source link

add "staff" prerequisite to #mod channel #44

Closed BuckarooBanzay closed 3 years ago

S-S-X commented 3 years ago

This should work but causes one side effect because of how event callback system works, it might be desired outcome or it might not be. Returning anything that is not nil from event callback will stop processing any further events and returns immediately.

Example:

This probably does not really affect anything (or at least anything important) but might affect possible future things added to chain, should probably document these things properly...

Urelated but if returned thing is string then that string will be sent as chat message to player (actually to first function argument) who executed command.