Add level restriction to mines and compare with pickaxe + fix some bugs
SuperPickaxe Update – v15.0.7
What’s New?</b]
[]Prison Mine Integration – Now you can set a required pickaxe level for any mine created by the Prison plugin. []Level‑Restricted Mining Zones – Every SuperPickaxe mining zone can have its own minimum pickaxe level. []New Admin Commands – /sp minelevel and /sp prisonlevel to configure those level requirements on‑the‑fly. []Config Enhancements – Added prison‑mines section with per‑mine level settings and a global default. []Permission Updates – New bypass permissions: - superpickaxe.zone.bypass - superpickaxe.prison.bypass []Message Localization – New language key mine-required-level-error for clear feedback.
Supported Plugins
[]Prison (official mine system) – Soft‑depend, no extra setup required. []Vault, PlaceholderAPI, MMOItems, ItemsAdder, Oraxen, Nexo – unchanged. (https://www.spigotmc.org/resources/prison.1223/) i used this prison plugins cause of it's open source
How to Use the New Features
1. Enable Prison Integration Make sure Prison is installed in your plugins folder. The plugin is automatically detected (soft‑depend), no extra configuration needed.
2. Set Minimum Pickaxe Level for a SuperPickaxe Zone
Code (Text):
Example: require level 20 for zone “myzone”
/sp minelevel myzone 20
You can also view the current setting:
Code (Text):
/sp minelevel myzone
3. Set Minimum Pickaxe Level for a Prison Mine
Code (Text):
Example: require level 30 for Prison mine “A”
/sp prisonlevel A 30
If you omit the level, it will show the current requirement.
4. Bypass Permissions
superpickaxe.zone.bypass – Ignore level checks for SuperPickaxe zones. superpickaxe.prison.bypass – Ignore level checks for Prison mines. Give these permissions to staff or your trusted players as needed.
5. Configuration (config.yml)
yaml mining-zones: default-required-level: 0 # 0 = no level restriction
prison-mines: enabled: true default-required-level: 0 bypass-permission: "superpickaxe.prison.bypass" mines: A: 10 B: 25 C: 50 D: 100 Adjust the default-required-level to apply a global minimum. Add or edit entries under mines: to set per‑mine requirements. 6. Message Customisation
The new language key can be edited in language.yml:
yaml mine-required-level-error: "&cYour pickaxe needs to be at least &eLevel %level%&c to mine in &e%zone%&c!" Replace %level% and %zone% with the appropriate values.
Permissions Overview
Code (Text):
superpickaxe.admin – Full access (required for new commands) superpickaxe.zone.bypass – Bypass zone level checks superpickaxe.prison.bypass – Bypass Prison mine level checks
Changelog
[]v15.0.5 – Prison integration, level‑restricted zones, new admin commands, config & permission updates. []v15.0.4 – Minor bug fixes and performance improvements.
v15.0.3 – Previous stable release.
Enjoy the new level‑restricted mining!
If you have any questions or run into issues, feel free to open a ticket on our GitHub or drop a message in the discussion thread.