[ x ] Fixed global admin waypoints not saving their changes correctly.
[ x ] Fixed /waypoint admin add and /waypoint admin remove commands requiring a player to execute them; now they can be run from console or other sources.
[ + ] Added a new command /waypoint admin temp to create temporary waypoints for a player, configure their data, and automatically remove them when the player gets close. Default removal distance is 15 blocks.
[ + ] /waypoint admin temp supports optional and required arguments:
Required:
- player:<player name> — the player to whom the waypoint will be shown
- x:<coord x> — X coordinate of the waypoint
- y:<coord y> — Y coordinate of the waypoint
- z:<coord z> — Z coordinate of the waypoint
- world:<world name> — the world of the waypoint (required if not executed by an entity; if executed by an entity and not provided, the entity’s world is used)
Optional:
- text:"<waypoint text>" — text displayed on the waypoint
- icon:"<waypoint icon, e.g., ┴>" — icon of the waypoint
- icon_color:"<&c or #ffffff>" — color of the icon, vanilla or hex
- color:<background color, &c or #ffffff> — background color, vanilla or hex
- remove_distance:<int> — distance at which the waypoint is removed (default 15)
Example command with all current options:
/waypoint admin temp player:FavioMC19 x:120 y:105 z:160 world:world text:"&dTemporal waypoint" icon:"┴" color:"#ffccc" icon_color:"&c"