Added in necessary events, fixed stuff

I have added in empty functions for the events we need, and i have done
the command event system for the Lua.