Update GuidedWaypointProvider.java

This commit is contained in:
fullwall 2014-09-03 17:38:59 +08:00
parent 2addf9678c
commit fc0f4585a2

View File

@ -96,6 +96,16 @@ public class GuidedWaypointProvider implements WaypointProvider {
togglePath();
}
});
} else if (event.getMessage().equalsIgnoreCase("clear")) {
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override
public void run() {
available.clear();
helpers.clear();
if (showPath)
markers.destroyWaypointMarkers();
}
});
}
}