Made some changes in the imports
Added onMode and onKick support for plugins