public static LuckPermsPermissions create(Server server, String name) { if (!server.getPluginManager().isPluginEnabled("LuckPerms")) return null; LuckPermsApi luckPerms = server.getServicesManager().load(LuckPermsApi.class); if(luckPerms == null) return null; Log.info("Using LuckPerms " + luckPerms.getPlatformInfo().getVersion() + " for access control"); return new LuckPermsPermissions(name, luckPerms); }