This is the original "bug" report, but as it turns out I was calling addEvent with an nil function.
While playing around with writing a "modmanager" to clean-up my nasty script, I ran into a bit-wall.
I am implementing a manager object which other objects (mods) can attach to.
The manager automatically calls addEvent for any event functions in the mod(s) object when it is attached.
When I run the server, enable is flipped before addEvent's are called *and* before onEnable is called.
Not sure why, but I think java LuaScript.enabled is set before lua onEnable is actually invoked.
I've added print statements everywhere. Code seems to be processed in the correct order.
Does LuaScript "this.script.call()" return immediately after parsing or something? I'm baffled.