mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-23 16:11:33 +01:00
added method to call marker save scheduled job to Dynmap Core, so that MarkerAPIImpl can be private and might not be used directly by other devs.
This commit is contained in:
parent
0b8118566c
commit
39053e36d9
@ -140,7 +140,7 @@ public class DynmapCore implements DynmapCommonAPI {
|
||||
public boolean is_reload = false;
|
||||
public static boolean ignore_chunk_loads = false; /* Flag keep us from processing our own chunk loads */
|
||||
|
||||
public MarkerAPIImpl markerapi;
|
||||
private MarkerAPIImpl markerapi;
|
||||
|
||||
private File dataDirectory;
|
||||
private File tilesDirectory;
|
||||
@ -159,7 +159,9 @@ public class DynmapCore implements DynmapCommonAPI {
|
||||
server = null;
|
||||
markerapi = null;
|
||||
}
|
||||
|
||||
public void restartMarkerSaveJob(){
|
||||
this.markerapi.scheduleWriteJob();
|
||||
}
|
||||
// Set plugin jar file
|
||||
public void setPluginJarFile(File f) {
|
||||
jarfile = f;
|
||||
|
@ -791,9 +791,9 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
if(core != null){
|
||||
if(core.markerapi != null){
|
||||
if(core.getMarkerAPI() != null){
|
||||
getLogger().info("Starting Scheduled Write Job (markerAPI).");
|
||||
core.markerapi.scheduleWriteJob();
|
||||
core.restartMarkerSaveJob();
|
||||
}
|
||||
}
|
||||
if (helper == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user