Skip to content

Commit

Permalink
Add automatic detection of Pl3xMap #253
Browse files Browse the repository at this point in the history
  • Loading branch information
pdinklag committed Aug 1, 2024
1 parent a6d3348 commit a2fd659
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a2fd659

Please sign in to comment.