public void registerCommand(Object obj) {
        Method methods[] = obj.getClass().getDeclaredMethods();
        for(Method m: methods) {
            if(m.isAnnotationPresent(DBCommand.class)) {
                Class<?> params[] = m.getParameterTypes();
                if(params.length == 2 && params[0] == CommandSender.class && params[1]
                        == Iterator.class && m.getReturnType() == Boolean.TYPE) {
                    String name = m.getName().toLowerCase();
                    commands.put(name, obj);
                }
            }
        }
    }