Rename the dynmap event bits to something sensible
This commit is contained in:
parent
9eb41a1b5a
commit
89886db5c3
@ -26,11 +26,11 @@ import org.dynmap.markers.Marker;
|
|||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
public class RegionEventHandler implements Listener {
|
public class DynmapEventRelay implements Listener {
|
||||||
private MarkerSet m_set;
|
private MarkerSet m_set;
|
||||||
private MarkerAPI m_api;
|
private MarkerAPI m_api;
|
||||||
|
|
||||||
public RegionEventHandler(MarkerAPI markerAPI) {
|
public DynmapEventRelay(MarkerAPI markerAPI) {
|
||||||
m_api = markerAPI;
|
m_api = markerAPI;
|
||||||
m_set = m_api.createMarkerSet("Regions", "Regions", null, false);
|
m_set = m_api.createMarkerSet("Regions", "Regions", null, false);
|
||||||
}
|
}
|
@ -67,7 +67,7 @@ public class Plugin extends JavaPlugin {
|
|||||||
DynmapCommonAPI mapAPI = (DynmapCommonAPI)mapPlugin;
|
DynmapCommonAPI mapAPI = (DynmapCommonAPI)mapPlugin;
|
||||||
MarkerAPI markerAPI = mapAPI.getMarkerAPI();
|
MarkerAPI markerAPI = mapAPI.getMarkerAPI();
|
||||||
if (markerAPI != null) {
|
if (markerAPI != null) {
|
||||||
RegionEventHandler regionHandler = new RegionEventHandler(markerAPI);
|
DynmapEventRelay regionHandler = new DynmapEventRelay (markerAPI);
|
||||||
getServer().getPluginManager().registerEvents(regionHandler, this);
|
getServer().getPluginManager().registerEvents(regionHandler, this);
|
||||||
} else {
|
} else {
|
||||||
log.info("[Regions] Dynmap marker API not found. Disabling map support.");
|
log.info("[Regions] Dynmap marker API not found. Disabling map support.");
|
||||||
|
Loading…
Reference in New Issue
Block a user