-
Notifications
You must be signed in to change notification settings - Fork 1
API
MrCubee edited this page Jul 16, 2022
·
2 revisions
If you want to interact with the plugin, you will have various events and courses available to help you.
Example:
public WayPoint getPlayerWaypoint(final Player player, final String waypointName) {
return WayPointStorage.getPlayerWayPoint(player, waypointName);
}
The Waypoint class is extended Bukkit's Location class.
Example:
public void setPlayerWaypoint(Player player, String waypointName, Location waypointLocation) {
WayPointStorage.addPlayerWaypoint(player, waypointName, waypointLocation);
}
Example:
public WayPoint removePlayerWaypoint(final Player player, final String waypointName) {
return WayPointStorage.removePlayerWaypoint(player, waypointName);
}
Call when the player turns on their GPS.
Call when the player turns off their GPS.
Call when the player creates a waypoint.
Call when the player deletes a waypoint.
If you want to interact with the plugin, you will have various events and courses available to help you.
(set|setup|start|turn on|guide) %player%['s] gps to %location%
(gsp stop|stop gps) [of] %player%
(stop|turn off) %player%['s] gps
get %player%['s] waypoint[s]
get %player%['s] %string% waypoint
add %waypoint% to %player%
add %waypoint% to %player%['s] waypoint[s]
(remove|delete) %waypoint% from %player%
(remove|delete) %string% from %player%
Call when the player turns on their GPS.
on player start gps:
Call when the player turns off their GPS.
on player stop gps:
Call when the player creates a waypoint.
on player create waypoint:
Call when the player deletes a waypoint.
on player remove waypoint:
command /cwp <string>
trigger:
set {_waypoint} to new