Sueta

BetterPrison

1.0.2

Advanced prison plugin - outstand other servers

·Plugin

Better Prison
Tired of mining in square mines? Build your own map and setup a mine! Define mineable blocks in a mine and the time to respawn.

Experience system allows players to unlock new mines.

Features
Auto Pickup
Update Checker

bStats

You can disable features in config.

Mines

YouTube

showxp

YouTube

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)

messages.yml
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

config.yml
settings:
  teleport-to-locked: true
  enable-metrics: true
  auto-pickup: true
areas:
  Mine:
    World: world
    MinXP: 0
    Location1:
      ==: org.bukkit.Location
      world: world
      x: -14.300000011920929
      y: 85.20000004768372
      z: -41.5909069475686
      pitch: 56.850178
      yaw: 127.35834
    Location2:
      ==: org.bukkit.Location
      world: world
      x: -24.69999998807907
      y: 79.0
      z: -45.69999998807907
      pitch: 87.14847
      yaw: 111.496155
    Teleport:
      ==: org.bukkit.Location
      world: world
      x: -19.018343751196397
      y: 82.0
      z: -40.89093060501259
      pitch: 5.521248
      yaw: 140.36829
    Icon: COAL_ORE
    MineableBlocks:
    - COAL_ORE
   - IRON_ORE
blocks:
  COAL_ORE:
    xp: 2
    time: 3
  IRON_ORE:
    xp: 4
    time: 5
items:
  COAL_ORE:
    money: 1
  RAW_IRON:
    money: 2
profile:
  069a79f4-44e9-4726-a5be-fca90e38aaf5:
    xp: 100

Placeholders

Example scoreboard with placeholders:
image_2021-08-29_154219.png
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}]

%PREFIX_name%
%PREFIX_xp%
%PREFIX_xp_formatted%
%PREFIX_xp_remaining%
%PREFIX_xp_remaining_formatted%
%PREFIX_unlocked%
%PREFIX_player_count%

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.

Similar projects

Plugin →