Inside a mine area, you can build and break freely in creative mode. While in survival mode, you can't build and can break only breakable blocks, you receive XP.
Setup: Create a mine using /prison area. Click in chat to set up every field. Then click save. Don't forget to set up XP reward and respawn time of the mineable blocks in the area with /prison blocks. If you have economy enabled. To setup sellable items (drops from mineable blocks) use /prison items Edit an existing Mine: While standing in an existing mine type /prison area and edit any field you like. Then click save. To delete a mine click remove.
Commands and permissions
User Commands: /prison [NONE] Show help dialog /prison xp [prison.xp (default)]Display current xp /sellall[prison.sellall (default)] Sell all sellable items in inventory /mines [prison.mines (default)] Display a menu with all mines /showxp [prison.showxp (default)] Display XP gained holograms Admin Commands: /prison reload [prison.reload] Reloads plugin from config file [prison.xp.*]: /prison xp add <Player> <Amount> [prison.xp.add] Adds Amount XP to Player /prison xp remove <Player> <Amount> [prison.xp.remove] Removes Amount XP from Player /prison xp set <Player> <Amount> [prison.xp.set] Sets Player's XP to amount Admin Setup Commands: [prison.setup]: /prison area [prison.area] Displays Area setup dialog /prison items [prison.items] Displays Sellable setup dialog /prison blocks[prison.blocks] Displays Mineable setup dialog
For /sellall command install Vault (Economy) Plugin.
Config
Default messages config: Arguments %X% (e.g. %0%) will be replaced with a custom value (51500) Arguments %fX% (e.g. %f0%) will be replaced with a custom formatted value (51,500)
Code (YAML):
prefix: '&7
[&6Prison&7
]'
missing_permissions: "&4You don't have right to do this." not_enough_experience: "&4You don't have enough experience to mine in this area." number_expected: "&4Invalid number at argument %0%"#0: Position starting with 1 item_expected: "&4Please hold an item in main hand" invalid_player: "&Invalid player at argument %0%"[B
]#0: Position starting with 1[/B] config:
reloaded: '&aConfig Reloaded.'
warning: '&8Please note, using reload command deletes session progress.'
commands:
xp: '&a
%0%XP' [B]#0: Current Xp[/B] xp_change: '&a
%0% &anow has %1%XP' #0: Name, 1: Current Xp sellall: '&aSold &7
%0% &aitems for &7$%1%' #0: Amount of Items, 1: Money area:
locked: '&4Locked'
unlocked: '&aUnlocked'
current_area_none: '&7Outside mines'
enter:
enabled: true
time: 80
title: '&2Entered area
%0%' #0: Area Name subtitle: '&3
%1%XP to mine' #0: Amount of XP setup:
name: '&cPlease type new name in the chat.'
xp: '&cPlease type new minimal XP in the chat.'
unfinished: '&4Please set up every field first'
saved: '&aArea saved'
deleted: '&cArea deleted'
items:
setup:
price: '&cPlease type new amount in the chat.'
saved: '&aItem saved'
deleted: '&cItem deleted'
blocks:
setup:
xp: '&cPlease type new amount in the chat'
time: '&cPlease type new time in the chat
(in seconds
)'
saved: '&aBlock saved'
deleted: '&cBlock deleted'
mines-gui:
title: '&bMines'
itemcolor: 'BLUE'
teleport: '&cClick to teleport'
xp: '&aUnlocks at
%0%XP'#Amount of XP
Everything inside the config can be generated inside the game using setup commands /prison area, /prison items, /prison blocks
Example scoreboard with placeholders: Player Placeholders: %prison_xp%: %prison_xp_formatted% %prison_blocks_mined% %prison_blocks_mined_formatted% Area placeholders: PREFIXES: [prison_standing_area, prison_next_area, prison_best_unlocked_area, area_{name}]
TODO, Features, Donation Todo List: Suggest a feature Feel free to reach out to me using spigot or on my discord Tomas Gaming#7156 Click here to donate on Paypal. Any video about the plugin will be appreciated and might be placed on the plugin resource site.