Skip to main content

Resets

FoxPrison supports automatic mine resets (timer-based and/or block-break-based) plus a manual reset command for admins.

Manual reset

Force a mine to reset immediately.

/mine reset A

Automatic resets

Auto reset can trigger in two ways:

  • Interval reset: reset every N seconds
  • Block-break reset: reset after N blocks are broken inside the mine

You can enable either (or both). Set a value to 0 to disable that trigger.

/mine autoreset set <mineId> <enabled> <intervalSeconds> <blocksBrokenThreshold> [minSecondsBetweenResets]

Set auto reset settings for a mine.

ArgumentTypeDescription
mineIdstringThe mine id
enabledbooleantrue or false
intervalSecondsintReset every N seconds (0 disables interval resets)
blocksBrokenThresholdintReset after N broken blocks (0 disables block-break resets)
minSecondsBetweenResetsint (optional)Cooldown between resets (prevents rapid re-resets)

Examples

Enable interval resets every 15 minutes (900s), disable block-break trigger:

/mine autoreset set A true 900 0

Enable block-break resets after 50,000 blocks, no interval trigger:

/mine autoreset set A true 0 50000

Enable both triggers and add a 120s cooldown between resets:

/mine autoreset set A true 900 50000 120

Permissions

Base: foxprison.mine.command.admin.autoreset Set: foxprison.mine.command.admin.autoreset.set

Mine reset info

Show the current auto reset settings for a mine.

/mine autoreset info <mineId>

You’ll get a message like:

  • enabled=true/false
  • intervalSeconds=...
  • blocksBrokenThreshold=...
  • minSecondsBetweenResets=...

Troubleshooting

  • Auto reset isn’t firing
    • Make sure enabled=true.
    • Ensure at least one trigger is non-zero (intervalSeconds or blocksBrokenThreshold).
    • If you set minSecondsBetweenResets, resets won’t happen more often than that cooldown.
  • Command says “mine not found”
    • Double-check the mineId spelling/case.
    • Confirm the mine exists and is loaded.
    • These commands only configure behavior — your server still needs to be running for timed resets to occur.