Realistic Backpacks
Realistic Backpacks is a plugin not similar to the other backpack/inventory extending plugins, but a unique experience. Backpacks are represented by a configurable item, not virtual commands. They also will give realistic features of what a backpack would give upon a user in real life, including slowed movement, increased need for hunger, and others. Of course, all of these features are customizable and can be turned off. If you just want backpacks that are opened via items and not commands and nothing else, then this plugin is also for you.
Features:
- Full customization of almost all features
- Lightweight as possible
- Flatfile and MySQL support
- Backpacks are items, not virtual commands
- Supports economies, and can purchase backpacks via commands
- Create multiple backpacks
- Custom recipes for backpacks
- Customize the names, lore, and item for backpacks
- Option to use a whitelist/blacklist for items with backpacks
- Backpacks can slow your movement speed
- Backpacks can increase hunger/decrease the amount of hunger food gives
- Full customization on what to do with backpack on death
- Admin friendly
-
Permissions:
<backpack> = Backpack name, example: rb.exampleBackpack.craft
Command Permissions:
- rb.reload - Access to the '/rb reload' command
- rb.list - Access to the '/rb list' command
- rb.filetomysql - Access to the '/rb filetomysql' command
- rb.<backpack>.buy - Access to the '/rb buy' command
- rb.<backpack>.give - Access to the '/rb give' command
- rb.fullview - Access to the '/rb view' command without restrictions
- rb.restrictedview - Access to the '/rb view' but can not edit the backpack in view
Backpack Permissions:
- rb.<backpack>.use - Can open the backpack
- rb.<backpack>.craft - Can craft the backpack if recipe is enabled
-
Commands:
Player Commands:
- /rb list - List all backpacks with their sizes and prices
- /rb buy <backpack> - Purchase a backpack for the price in the config file
Admin Commands:
- /rb reload - Reloads the config and messages file
- /rb filetomysql - Transfers the flatfile data to the mysql database set in the config
- /rb give <player> <backpack> - Give a player a backpack
- /rb view <player> <backpack> - View a player's backpack
-
Links:
-
Features that involve an economy require an economy plugin and Vault.
Consider donating to support the development of this project.
@UnUltima23
Use the destroyContents option?
It's also impossible to differentiate between an item that's the same, so different inventories of the same backpack is impossible.
This plugin is fantastic! I'm looking forward to using this on my server.
Here's a few possible bugs i've noticed :
Anyways, keep up the good work. I'm sure this will be very popular :)!
Oh and also could you make it so the inventory is tied to the item? Because if a player dies, and loses his backpack, he can still craft another and receive what was in the previous one.
@UnUltima23
MySQL support has been added. The file is awaiting approval.
@Undust4able
The item id 299 is leather armor, put that in the config, give it a name and lore, and you have a wearable backpack. But wearing it won't do anything since the plugin doesn't handle that.
I'll take note of your suggestion, but keep in mind it's not something simple to do and will take awhile for me to get to it.
I want to have an armor, and a backpack (armor w/ lore). Because dmg values are needed for armor (1:1337 and 1:1338 are different items (game think so) but leatherArmor:5 is a damaged armor), I think plugin must search in items lore, if first row of the lore is "Small/Medium/Big backpack", identify that armor as a backpack, if there is no lore or another value, ignore this and be like normal armor, because I want to make possible equip backpacks (wear), aisb.
@Undust4able
You can make a backpack whatever you want... And about inventory limiting, that will be a to-do, but will take awhile.
First - backpacks. I think it must be leather armor with lore. You can equip backpacks, like armor. Second - Inventory limiting. There are 4 rows in inventory, right? So, w/o backpack only first row is accessible. w/ Small backpack, you can unlock second row. Medium backpack - third row and Big backpack - fourth row of inventory.
@UnUltima23
I was planning on adding the feature, but the current file system works fine, since data isn't accessed constantly.
Add MySQL support? Also add so you cant put backpacks inside backpacks.
@ZuBrEiD
Well a backpack only holds 1 inventory per user. So if you had 20 of the same backpacks in your inventory, it would open the same contents.
nice work ;)
is it possible too add a backpack limit per user?
Yay , cant wait to see this in action