Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events for CH startup and CH shutdown #646

Open
LadyCailinBot opened this issue Apr 12, 2013 · 3 comments
Open

Events for CH startup and CH shutdown #646

LadyCailinBot opened this issue Apr 12, 2013 · 3 comments
Labels
feature request New functionality that doesn't exist yet

Comments

@LadyCailinBot
Copy link

CMDHELPER-2640 - Reported by jb_aero

@startup and @shutdown tags run when the compiler runs...

So I guess these need to be triggered from onEnable and onDisable.

@LadyCailinBot
Copy link
Author

Comment by Tom.Gebbett

onEnable is the same as putting code in main.ms
an event for runtime unloading would be handy... when either commandhelper is disabled or is reloading scripts. You can work around this by adding code into certain command binds, but that is less neat.

@LadyCailinBot
Copy link
Author

Comment by jb_aero

Well, unless CH disables itself on /reloadaliases, onEnable should only run once.

@LadyCailinBot
Copy link
Author

Comment by Tom.Gebbett

yeah, that's a fair point. Not sure what i'd use that for that i couldn't do already, but it isn't the same as code in main.ms. Any additive feature is a good one.

@LadyCailin LadyCailin added the feature request New functionality that doesn't exist yet label Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New functionality that doesn't exist yet
Projects
None yet
Development

No branches or pull requests

2 participants