Developers can now listen to the following waypoint-related events from the com.github.syr0ws.minewaypoints.api.event package:
AsyncWaypointCreateEvent: Called when a player attempts to create a new waypoint.
AsyncWaypointCreatedEvent: Called when a waypoint has been created by a player.
AsyncWaypointDeleteEvent: Called when a player attempts to delete one of its waypoints.
AsyncWaypointDeletedEvent: Called when a waypoint has been deleted by its owner.
AsyncWaypointSharingRequestSendEvent: Called when the owner of a waypoint sends a sharing request to a player.
AsyncWaypointSharedEvent: Called when a waypoint has been shared with a player.
AsyncWaypointUnshareEvent: Called when a player is trying to stop sharing a waypoint.
AsyncWaypointUnsharedEvent: Called when a waypoint is no longer shared with a player.
AsyncWaypointUpdateEvent: Called when a player attempts to update one of its waypoint.
AsyncWaypointUpdatedEvent: Called when a waypoint has been updated its owner.
Rework:
Reworking the way waypoint data updates are handled.
Breaking changes:
This update requires an update of your config.yml file. If you want to keep your configuration, you can add the following entry in the messages.errors.waypoint section.
Code (Text):
# Message sent when a player is trying to rename a waypoint using the same name.
same-name: "&c>> The waypoint name must be different from the current one."