plugin: Add some preliminary pl3xmap support

This commit is contained in:
2021-07-08 00:34:12 -07:00
parent b5a28e40cf
commit ff70dd255b
4 changed files with 144 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ public class Plugin extends JavaPlugin {
if (markerAPI != null) {
DynmapEventRelay regionHandler = new DynmapEventRelay (this, markerAPI);
getServer().getPluginManager().registerEvents(regionHandler, this);
log.info("Dynmap support enabled.");
} else {
log.info("Dynmap marker API not found. Disabling map support.");
}
@@ -85,6 +86,14 @@ public class Plugin extends JavaPlugin {
log.info("Dynmap not found. Disabling map support.");
}
Pl3xMapRelay plexMapper = new Pl3xMapRelay(this);
if (plexMapper.isEnabled()) {
getServer().getPluginManager().registerEvents(plexMapper, this);
log.info("Pl3xmap support enabled.");
} else {
log.info("Pl3xmap not found. Disabling map support.");
}
// Install the event handler after things are loaded so players aren't spammed with text
getServer().getPluginManager().registerEvents(m_playerWatcher, this);
getServer().getPluginManager().registerEvents(new PlayerNotifier(this, m_regions), this);