Features:
- Replacing the global waypoint limit by a permission-based system to limit the number of waypoints a player can create. When a player has reached its waypoint limit and is trying to create a new waypoint, a message will be sent to inform it that it has reached the limit.
Note: This feature is entirely configurable in your
config.yml file (see the
How to update? section to integrate it in your current configuration).
- Adding support for forbidden worlds in which players cannot create waypoints. When a player is trying to create a waypoint in a forbidden world, a message will be sent to inform it that it is not possible. No AsyncWaypointCreateEvent will be called.
Note: This feature is entirely configurable in your
config.yml file (see the
How to update? section to integrate it in your current configuration).
Documentation:
- Fixing invalid permission names with missing prefix minewaypoints. in the README.md and the Spigot presentation.
- Improving the documentation in the README.md file.
Other changes:
- Renaming the key messages.errors.waypoint.invalid-world to messages.errors.waypoint.world-changed in the config.yml file.
How to update?
If you want to update to this version by keeping your current configuration, please do the following actions in your
config.yml file.
- Remove the waypoint-limit key from your config.yml file.
Code (YAML):
# The maximum number of waypoints a player can create.
# Set -1 to allow an unlimited number of waypoints.
waypoint-limit
: 50
- Add the following code at the end of the GENERAL section in your config.yml file.
Code (YAML):
# Permission-based system to define the maximum number of waypoints a player can create.
# If a player has several permissions, the one that allows the highest number of waypoints will be used.
# You are free to add as many permissions you want and to give them custom names.
# Set -1 to the limit field to allow an unlimited number of waypoints.
waypoint-creation-limits:
- permission
:
"waypoints.create.limit.default"
limit
: 25
- permission
:
"waypoints.create.limit.admin"
limit
: -1
- Add the following code at the end of the GENERAL section in your config.yml file.
Code (Text):
# List of worlds players cannot create waypoints in.
forbidden-worlds:
- world-example-1
- world-example-2
- world-example-3
- Rename the key messages.errors.waypoint.invalid-world to messages.errors.waypoint.world-changed in your config.yml file.
Code (YAML):
# Message sent when a player is trying to change the location of a waypoint to another world.
# Available placeholders: %waypoint_world%.
world-changed
:
"&c>> The world of the waypoint cannot be changed."
- Add the following code in the messages.errors.waypoint section in your config.yml file.
Code (YAML):
# Message sent when a player is trying to create a waypoint in an invalid world.
# Available placeholders: %waypoint_world%.
forbidden-world
:
"&c>> Waypoints are forbidden in this world."