private void setupPermissions() {
        RegisteredServiceProvider<Permission> rsp = getServer().getServicesManager().getRegistration(Permission.class);
        perms = rsp.getProvider();
        if (perms == null) {
            throw new IllegalStateException("No vault compatable permission plugins found.");
        }
        if (!perms.hasGroupSupport()) {
            throw new IllegalStateException("Your permissions plugin does not have group support.");
        }
        if (!perms.hasSuperPermsCompat()) {
            throw new IllegalStateException("Your permissions plugin does not have super perms compatability.");
        }
    }