removed static fields in config, rewrote event system for chat commands and synchronized some of the methods accessed by multiple threads