- Update version in
pom.xml - Update version in
plugin.yml - Run
mvn clean verify— ensure all tests pass - Build the shaded JAR:
mvn package - Upload
target/MiningLevels-<version>.jarto GitHub Releases / SpigotMC
- In-game: Use
/mininglevels editor→ Blocks → Add Block - Or edit
plugins/MiningLevels/miningBlocks.jsondirectly:{ "materials": ["COPPER_ORE", "DEEPSLATE_COPPER_ORE"], "xp": 2, "minLevel": 0 } - Reload with
/mininglevels reload
- In-game: Use
/mininglevels editor→ Levels → Add Level - Or edit
plugins/MiningLevels/miningLevels.json:{ "name": "Grandmaster", "nextLevelXP": 2000, "ordinal": 4, "hasteLevel": 3, "instantBreakProbability": 15.0, "extraOreProbability": 20.0, "maxExtraOre": 3, "rewards": [], "commands": [] } - Levels must have sequential ordinals starting from 0
- Reload with
/mininglevels reload
- The server couldn't download CrucialLib automatically
- Download manually from: https://github.com/ChafficPlugins/CrucialLib/releases
- Place the JAR in the
plugins/folder and restart
- Incompatible CrucialLib version installed
- Required version: 3.0.x (see
ConfigStrings.CRUCIAL_LIB_VERSION) - Download the correct version and replace the existing JAR
- Check that the block is in
miningBlocks.json - Check that the player's pickaxe is in the
mining_itemsconfig list - Check
level_with.player_placed_blocksif mining player-placed blocks - Check that the player meets the block's
minLevelrequirement
- Ensure PlaceholderAPI is installed and enabled
- Placeholders:
%mininglevels_level%,%mininglevels_xp%,%mininglevels_next_level_xp%
Key config values in config.yml:
| Key | Default | Description |
|---|---|---|
levelup_sound |
ENTITY_PLAYER_LEVELUP |
Sound played on level-up |
max_level_xp_drops |
false |
Allow XP at max level |
level_with.player_placed_blocks |
false |
Earn XP from placed blocks |
level_with.generated_blocks |
false |
Earn XP from generated blocks |
level_progression_messages |
actionBar |
Message type: chat/title/actionBar/bossBar |
destroy_mining_blocks_on_explode |
true |
Track exploded blocks |
mining_items |
All pickaxes | Tools that grant mining XP |