Prefer AdvancedServerList-OG for Paper integration #1

Merged
NotAlexNoyle merged 1 commits from codex/update-plugin-dependency-to-advancedserverlist-og into main 2026-03-16 04:18:28 -04:00
2 changed files with 8 additions and 5 deletions

No files matched your search

@@ -88,13 +88,16 @@ public final class MaintenancePaperPlugin extends MaintenancePlugin {
continueLastEndtimer();
new Metrics(plugin, 2205);
final Plugin serverListPlus = pm.getPlugin("ServerListPlus");
if (pm.isPluginEnabled(serverListPlus)) {
serverListPlusHook = new ServerListPlusHook(serverListPlus);
Plugin serverListPlugin = pm.getPlugin("AdvancedServerList-OG");
if (serverListPlugin == null) {
serverListPlugin = pm.getPlugin("ServerListPlus");
}
if (pm.isPluginEnabled(serverListPlugin)) {
serverListPlusHook = new ServerListPlusHook(serverListPlugin);
if (settings.isEnablePingMessages()) {
serverListPlusHook.setEnabled(!settings.isMaintenance());
}
plugin.getLogger().info("Enabled ServerListPlus integration");
plugin.getLogger().info("Enabled server list plugin integration");
}
if (false && pm.isPluginEnabled("LuckPerms")) {
+1 -1
View File
@@ -3,7 +3,7 @@ version: ${version}
main: eu.kennytv.maintenance.paper.MaintenancePaperBase
author: kennytv
description: ${description}
softdepend: [ProtocolLib, ServerListPlus, ProtocolSupport, LuckPerms]
softdepend: [ProtocolLib, AdvancedServerList-OG, ProtocolSupport, LuckPerms]
website: https://hangar.papermc.io/kennytv/Maintenance
api-version: 1.13
folia-supported: true