From a2fd659cc88e203a884a1c656319b7408ab947e2 Mon Sep 17 00:00:00 2001 From: Patrick Dinklage Date: Thu, 1 Aug 2024 08:00:27 +0200 Subject: [PATCH] Add automatic detection of Pl3xMap #253 --- .../mcstats/bukkit/webserver/Pl3xMapWebserver.java | 9 +++++++++ .../mcstats/bukkit/webserver/PluginWebserver.java | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 src/main/java/de/pdinklag/mcstats/bukkit/webserver/Pl3xMapWebserver.java diff --git a/src/main/java/de/pdinklag/mcstats/bukkit/webserver/Pl3xMapWebserver.java b/src/main/java/de/pdinklag/mcstats/bukkit/webserver/Pl3xMapWebserver.java new file mode 100644 index 00000000..9c52e948 --- /dev/null +++ b/src/main/java/de/pdinklag/mcstats/bukkit/webserver/Pl3xMapWebserver.java @@ -0,0 +1,9 @@ +package de.pdinklag.mcstats.bukkit.webserver; + +import org.bukkit.plugin.Plugin; + +public class Pl3xMapWebserver extends SquaremapWebserver { + public Pl3xMapWebserver(Plugin squaremapPlugin) { + super(squaremapPlugin); + } +} diff --git a/src/main/java/de/pdinklag/mcstats/bukkit/webserver/PluginWebserver.java b/src/main/java/de/pdinklag/mcstats/bukkit/webserver/PluginWebserver.java index dc56d64c..c7475d4c 100644 --- a/src/main/java/de/pdinklag/mcstats/bukkit/webserver/PluginWebserver.java +++ b/src/main/java/de/pdinklag/mcstats/bukkit/webserver/PluginWebserver.java @@ -32,6 +32,8 @@ public static PluginWebserver find(Server server) { return webserver; if ((webserver = getPluginWebserver(pluginManager, "squaremap", SquaremapWebserver.class)) != null) return webserver; + if ((webserver = getPluginWebserver(pluginManager, "Pl3xMap", Pl3xMapWebserver.class)) != null) + return webserver; return null; }