Optimization and code cleaning

Added a util class and converted a bunch of checks into a method, also
made User class temporarily to optimize the plugin for larger servers
