mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 05:05:20 +01:00
Update GuidedWaypointProvider.java
This commit is contained in:
parent
2addf9678c
commit
fc0f4585a2
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user