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.
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)
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
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/
https://www.mc-market.org/resources/20431/
