Rename the dynmap event bits to something sensible

This commit is contained in:
Trever Fischer 2012-04-25 16:30:35 -04:00
parent 9eb41a1b5a
commit 89886db5c3
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.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);
} }

View File

@ -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.");