Refactor /modmode
* Easier readability and greater extensibility
* Fix ArrayIndexOutOfBoundsException
Prettify modmode-active warning output