PrisonBackpack ( 1.8 - 1.17 ) 1.1.1- SNAPSHOT

An essentials plugin for your prisons
PrisonBackpack
Description

A simple prison backpack that is a solution for every prison servers especially for op ones, this plugin will help you have unlimited pages of backpacks but at the same time a way to sell all the items and store it. This plugin combines with an auto sell feature for prisons.

Features

  • Async methods ( Faster and no lag ).
  • High quality code.
  • Flexible config.
  • Drops to inventory + sounds.
  • Upgradeable backpacks.
  • Cheap.
  • MySQL / database support.
  • Sell backpack items.
  • Drop priority ( backpack first or player's inventory).
  • Auto pickup feature ( toggleable ).
  • Default multipliers per shop.
  • All enchantments supported.
  • Auto mob drops pickup.
  • Sell custom items.
  • Filter pickup.
  • Death drops.
Media


2021-06-25-14-27-45.png

giphy.gif

2021-06-25-14-41-29.png

2021-06-25-14-43-24.png

2021-06-25-14-44-04.png

Developers


Java:
// events
AsyncDropToInventory
   getDrops() // returns to a collection of items being transfer to player's inventory
   setDrops(List<ItemStack> itemStack); // change the drops
   setCancelled(boolean cancel) // cancel the state of event

AsyncFullInventoryEvent
   getPlayer(); // get the player
   getRemainingItems() // returns to a collection of items that did not fit

AsyncSellItemsEvent
   getPlayer(); // get the player
   getWorth(); // returns to total worth of items being sold
   getTotalItems(); // returns to number of items being sold
   getMessages(); // returns to set of sell message
   setMessages(List<String> messages) // set new messages

BackpackOpenEvent
   getBackpack(); // backpack object
   getPlayer(); // get the player

BackpackDropItemsEvent 
   getBackpack(); // backpack object
   getPlayer(); // get the player

Java:
Backpack.get(player)
to get the backpack of a specific player

Java:
SellResponse response = SellApi.sellItems(player, SellApi.getApplicableShop(player));

      response.getWorth() // for total worth of sold items
      response.getTotalItems() // for total number of items sold

SellApi.getMultiplier(player, shop); // getting the exact multiplier of a player

Config


PHP:
# NOTE: This name will affect before player load an inventory
backpack-name: '&4Backpack'

# Database
MySQL:
  host: 'localhost'
  port: '3306'
  database: 'MyDB'
  user: 'root'
  pass: ''

# default available rows per inventory
available-rows: 1

# sell message
# %multiplier% - multiplier of player
# %items% - total items
# %worth% - total worth
# %shop% - shop name

sell-message:
  - '&e&l(!) &eYou sold &e&l%items% &eitems worth &e&l%worth%.'


max-multiplier: 3.5

backpack:
  # Persistent backpack
  # enabling this feature lets you place a backpack item to player's inventory that they cannot drop or move
  persistent: true

  # if this feature is true
  # which slot you want the backpack to stick in player's inventory
  # if by any chance player's inventory cleared or lost his / her backpack
  # using /backpack command will give them the item in this slot
  # if this feature is disabled it will go to available slot
  slot: 9

  # item type
  # using the keyword provided means that you can use a custom backpack texture that I input
  type: 'ENDER_CHEST'

  # lore
  lore:
    displayname: '&e&lBackpack'

  # upgrade
  # cost * the backpack level
  upgrade:
    # + 1 row or + 9 slots
    row-cost: 500
    # fill rows or the whole 5 rows
    fill-cost: 5000

  # give on join
  on-join: true

  # add items to backpack first or not, it is up to you
  # true -> every items will go to backpack first
  # false -> every items will go to player's inventory first
  first-pick: true

  # auto pickup
  # you can set this to false to disable this feature
  auto-pick: true

  # drop items inside backpack on player death
  death-drops: true

  # blacklist items
  blacklist:
    - 'TNT'

  # max level
  # set this to -1 to for unlimited pages or levels
  max-level: 10

Permissions


prisonbp.autosell - allows you to use /autosell command.
prisonbp.backpack - allows you to use /backpack command.
prisonbp.upgrade - allows you to use /bpupgrade command.
prisonbp.multiplier - allows you to use /multiplier command.
prisonbp.admin - allows you to use /prisonbackpack command.
prisonbp.sellall - allows you to use /sellall command.
prisonbp.shop.<shopname> - permission to sell to a specific shop.
prisonbp.signchange - allows you to create an autosell sign.
prisonbp.multiplier.max - allows player to have max multiplier.
prisonbp.bptoggle - allows player to use /bptoggle command.

/prisonbackpack help - for command assistance.

Shops


PHP:
//shops.yml
# name of the shop:
#   Material name: price

# Example format
# shop1:
#   DIAMOND: 5.0
#   DIRT: 0.2
# default shop
default:
  default-multiplier: 1.5
  worth:
    DIAMOND: 5.0
    DIRT: 50
    EMERALD: 70
  special-items:
    # this will look for same name and type.
    item1:
      type: 'DIAMOND'
      name: '&6Something'
      price: 500

Sign


2021-06-25-14-45-17.png

2021-06-25-14-46-11.png


Wiki


Wiki and support will be coming right up, if you have any suggestions, requests or bugs that you may encounter. feel free to give me private message.

Note


Vault is required. Economy depend. https://www.spigotmc.org/resources/vault.34315/

Latest updates

  1. Optimization

    Added some few things to optimize the performance. drops are now from the block before it is broken.

Author

PandaDevX

Owner
Author
PandaDevX
Downloads
2
Type
Digital product
License duration
Unlimited
Price
6.00 USD
Views
196
First release
Last update
Rating
0.00 star(s) 0 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.