protected SQLPermissionBase getBaseClass(PermissionType type, String name) {
        switch (type) {
            case USER:
                return new SQLPermissionUser(name);
            case GROUP:
                return new SQLPermissionGroup(name);
            case WORLD:
                return new SQLPermissionWorld(name);
            case ENTITY:
                return new SQLPermissionEntity(name);
            case OP:
                return new SQLPermissionOp();
            case CONSOLE:
                return new SQLPermissionConsole();
            case RCON:
                return new SQLPermissionRcon();
            default:
                return null;
        }
    }