CommandHelper icon indicating copy to clipboard operation
CommandHelper copied to clipboard

Events for CH startup and CH shutdown

Open LadyCailinBot opened this issue 12 years ago • 3 comments
trafficstars

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 avatar Apr 12 '13 04:04 LadyCailinBot

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 avatar Apr 15 '13 19:04 LadyCailinBot

Comment by jb_aero

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

LadyCailinBot avatar Apr 16 '13 00:04 LadyCailinBot

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.

LadyCailinBot avatar Apr 16 '13 01:04 LadyCailinBot