mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-28 13:15:23 +01:00
Fixed null check running before Dynmap API fully loads (#137)
This commit is contained in:
parent
371aa8aa4d
commit
ab9250d67e
@ -81,11 +81,6 @@ public void apiEnabled(DynmapCommonAPI api) {
|
||||
activate();
|
||||
}
|
||||
});
|
||||
if (this.markerapi == null) {
|
||||
this.logger.severe("Error loading Dynmap Provider! Could not locate Marker API.");
|
||||
return;
|
||||
}
|
||||
GriefDefender.getEventManager().register(this);
|
||||
}
|
||||
|
||||
private Map<String, AreaMarker> areaMarkers = new HashMap<String, AreaMarker>();
|
||||
@ -278,6 +273,7 @@ private void updateClaims() {
|
||||
private void activate() {
|
||||
this.markerapi = this.dynmap.getMarkerAPI();
|
||||
if (this.markerapi == null) {
|
||||
this.logger.severe("Error loading Dynmap Provider! Could not locate Marker API.");
|
||||
return;
|
||||
}
|
||||
if (this.reload) {
|
||||
@ -311,6 +307,7 @@ private void activate() {
|
||||
this.set.setHideByDefault(this.cfg.layerHideByDefault);
|
||||
|
||||
new GriefDefenderUpdate(40L);
|
||||
GriefDefender.getEventManager().register(this);
|
||||
this.logger.info("Dynmap provider is activated");
|
||||
}
|
||||
|
||||
|
@ -83,11 +83,6 @@ public void apiEnabled(DynmapCommonAPI api) {
|
||||
activate();
|
||||
}
|
||||
});
|
||||
if (this.markerapi == null) {
|
||||
this.logger.error("Error loading Dynmap Provider! Could not locate Marker API.");
|
||||
return;
|
||||
}
|
||||
GriefDefender.getEventManager().register(this);
|
||||
}
|
||||
|
||||
private Map<String, AreaMarker> areaMarkers = new HashMap<String, AreaMarker>();
|
||||
@ -280,6 +275,7 @@ private void updateClaims() {
|
||||
private void activate() {
|
||||
this.markerapi = this.dynmap.getMarkerAPI();
|
||||
if (this.markerapi == null) {
|
||||
this.logger.error("Error loading Dynmap Provider! Could not locate Marker API.");
|
||||
return;
|
||||
}
|
||||
if (this.reload) {
|
||||
@ -313,6 +309,7 @@ private void activate() {
|
||||
this.set.setHideByDefault(this.cfg.layerHideByDefault);
|
||||
|
||||
new GriefDefenderUpdate(40L);
|
||||
GriefDefender.getEventManager().register(this);
|
||||
this.logger.info("Dynmap provider is activated");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user