Prefer AdvancedServerList-OG for paper integration

This commit is contained in:
NotAlexNoyle committed 2026-03-16 04:18:17 -04:00
1 parent dcbc8f7407
commit 7664d40696
2 files changed
+8 -5

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