Rename the dynmap event bits to something sensible

This commit is contained in:
Torrie Fischer 2012-04-25 16:30:35 -04:00
parent b7119d774e
commit 2507e9615a
2 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ import org.dynmap.markers.Marker;
import org.bukkit.event.EventHandler;
import org.bukkit.Location;
public class RegionEventHandler implements Listener {
public class DynmapEventRelay implements Listener {
private MarkerSet m_set;
private MarkerAPI m_api;
public RegionEventHandler(MarkerAPI markerAPI) {
public DynmapEventRelay(MarkerAPI markerAPI) {
m_api = markerAPI;
m_set = m_api.createMarkerSet("Regions", "Regions", null, false);
}

View File

@ -67,7 +67,7 @@ public class Plugin extends JavaPlugin {
DynmapCommonAPI mapAPI = (DynmapCommonAPI)mapPlugin;
MarkerAPI markerAPI = mapAPI.getMarkerAPI();
if (markerAPI != null) {
RegionEventHandler regionHandler = new RegionEventHandler(markerAPI);
DynmapEventRelay regionHandler = new DynmapEventRelay (markerAPI);
getServer().getPluginManager().registerEvents(regionHandler, this);
} else {
log.info("[Regions] Dynmap marker API not found. Disabling map support.");