plugin: Add some preliminary pl3xmap support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user