Added functionality for restarting the scheduled job that stores markers to markers.yml.

This should fix problems with markers not being stored after a dynmap reload, as well as vanishing markers.
This commit is contained in:
Stormboomer 2019-06-01 20:03:10 +02:00
parent f69ce760f0
commit 0b8118566c
3 changed files with 8 additions and 2 deletions

View file

@ -790,6 +790,12 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
@Override
public void onEnable() {
if(core != null){
if(core.markerapi != null){
getLogger().info("Starting Scheduled Write Job (markerAPI).");
core.markerapi.scheduleWriteJob();
}
}
if (helper == null) {
Log.info("Dynmap is disabled (unsupported platform)");
return;