AlphaToolsDocs v2.0.0
AlphaToolsGuidesTime and protection

Time and protection

Tools run on a clock. Here is how the clock works and how to keep tools out of places.

On this page

The clock

Every tool has a real-time expiry set when it is given, for example 2h30m. The clock runs on the wall clock, so time passes even while the item sits in a chest or the player is offline.

Duration format

InputMeans
30m30 minutes
1h1 hour
1d2h30m1 day, 2 hours and 30 minutes
45s45 seconds
90A plain number is minutes, so 90 minutes

Units are d, h, m and s and can be combined. Anything that adds up to zero is rejected as an invalid duration.

Protection

Two lists keep tools out of places. In a blocked place the tool does nothing and loses no time.

blacklist:
  worlds:
    - "world_blacklist1"
    - "world_blacklist2"

blacklisted-areas:
  - "spawn"
Break tools (drill, shovel, axe, hoe) skip their special effect in a blocked place, and the break itself is still handled by the server and your protection plugins. Buckets are cancelled outright. Extra blocks from the area tools are broken without a separate permission check, so cover claimed land with a blocked region.