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.
@TrenTech
That's on my to-do list.
This is the best backpack plugin I've messed with so far. I love it! I only have one small complaint with it. The backpack item can be put into it's own inventory. It's a small annoyance I've noticed with a lot of backpack plugins. Please fix if possible. Great Work!
@QlimaxD
I don't understand how that could happen, I've looked over the code where inventories are saved/loaded and their don't seem to be any problems.
I've also tried reproducing and can't seem to. The only way that I can try and fix your issue is if you can get the exact method that it takes to dupe an item.
But, I still don't think this plugin is duping the items, maybe it's a plugin incompatibility.
Seems to be a random issue of duping items. One of my players pointed this out to me, he told me that he had put a dragon egg in his backpack and he went to open it today and there was 4 in there. I have no idea how to explain that.
I am also using the flatfile to save the data.
@slayr288
Hopefully you could add it so people can see what the plugin is about!
@iPadHD
Thanks man, great video!
http://www.youtube.com/watch?v=SeWOmj3CZxs&feature=youtube_gdata Showcase on this plugin!
Loving the plugin man, great work!
Making a video now, should be uploaded in around two hours or less.
@slayr288
Awesome thanks for everything.
No bugs to report at this time and I can't think of any features to add either.
Great work!
@PalominosVIP
There is no id for a backpack, it's not a new item. Just run the command /rb give <player> <backpack> on new players.
What's the ID for a backpack? I need to know so new players can spawn with one.
@penorzilla
Suggestion 1: The backpacks are not case sensitive for the buy command anymore.
Suggestion 2: If you don't have permission to buy the backpack, the list command will now show the 'listCommandNoPermission' message.
Suggestion 3: Also added. Put the config option 'OpenWith: right_click' or 'OpenWith: left_click' in your backpack configurations. You can see the configuration page to see where it is supposed to be located. If the config value OpenWith is not found, it will default to right_click.
Bug 1: Also fixed.
This is all in v1.2
@CraftySubZero
I'll take this suggestion into account, but if it is added, it will be near the time where backpacks have the option to not be placed into other backpacks, because it covers the same problem that I'm facing.
Great plugin :)
It gets really messy reading the comments when people are writing bugreports here instead of using the ticket system. So, use the tickets!
I have a suggestion :) An option in the config, which allows backpack inventory sizes to increase, depending on the amount of backpacks your holding. So if I hold two backpacks, which have a storage space of 9, my combined storage is now 18. Upon dropping one of the backpacks, it also drops any items held within the last 9 slots onto the floor.
Suggestion 1:
Make the /rb buy backpackname not case sensitive. For example if my config is vipbackpack and they type in VipBackpack it won't match the two together.
Suggestion 2:
When doing /rb list have the Price section say "Insufficient Permissions to Purchase" if the item is set to Purchaseable but the player does not have the correct permissions to purchase it.
Reason for this is because I sell the permission to be able to buy the backpack for real money. Then I set the backpack price to 0 so in case they lose it, they can easily purchase another one without dropping the $$ to do so.
Would be nice if this "Insufficient Permissions to Purchase" message in /rb list was configurable so I can set it to whatever I want, possibly to advertise the fact that you can purchase it with real money.
Suggestion 3:
Make it configurable on how you open the backpack, weather it is Left Click, Right Click or Either. This way if you set the backpack to a sponge, you can make sure players aren't placing the sponge for a brief moment when opening. This would also prevent spam messages if the player was in a no-build area.
Bug 1
When I opened a new backpack for the first time it gave this error but it doesn't seem like any functionality was lost and hasn't happened since. http://pastebin.com/fMr8GN4S
@slayr288
Bug 1: I apologized I should have stated that I was an OP and when I died I would drop my bakcpack on death, but when I de-op'd myself I would keep my backpack. Sorry about the assumption that it was the permission.
Thanks for fixing the bugs and adding the features I requested.
I have many players on the server who would buy multiple backpacks just because they can and complain that they don't work individually haha.
I will be testing out this new update and let you know if I find any bugs, thanks once again!
@penorzilla
Bug 1: It shouldn't do the opposite, players with that permission completely ignore the death options. So, the config values mean nothing. When a player dies with a backpack and with the bypass permission, the backpack will drop like vanilla, and the contents will stay.
Bug 2: Fixed in v1.1.2
Bug 3: Shouldn't happen, try and reproduce and see what exactly needs to happen.
Bug 4: That will be fixed at a later date, as it is complicated to fix.
Bug 5: Fixed in v1.1.2
Suggestion: Added the feature that you can't purchase a backpack if it's in your inventory.
--
Here's v1.1.2: v1.1.2
Also added a donate button for this project, and thanks for the bug reports.
Thank you
I really enjoy this plugin, I only wish there was a way around the multiples of 9 backpacks but I understand that is out of your control. I like the configuration setup for the OnDeath stuff. Really enjoy this plugin. You should add a donate button for I usually give back to the plugin developer everytime something they created is purchased on my server!
Here a few bugs I found with v1.1 using MySQL on the Recc build of Bukkit. My Config File: http://pastebin.com/P4dQG2p8
Possible Bug 1:
When you have the rb.<backpack>.deathbypass permission it does the opposite of the config file settings instead of just making it all false. Not sure if this is intended but it almost destroys the use of the permission.
Bug 2:
I have two backpacks setup. A normal one that can be purchased for 5000 coins, and one that you have to donate to get. By default everyone gets the rb.normalbackpack.use and rb.normalbackpack.buy permission. They do not get the rb.vipbackpack.use permission by default and only get this if they purchase the right to use a vipbackpack.
I also have custom items that drop from mobs like special swords or special armor. They use the same lore/name configuration that your Backpacks do. Now my issue is that if someone doesn't have the rb.vipbackpack.use permission, and they left click/right click with ANY custom item that I generate it will spam them with "You do not have permission to open this backpack."
Even though the vipbackpack is a sponge, and the custom item is a sword, it will still think that the sword is a backpack. If I give them the permission to use all the backpacks it will work fine and the sword will not be a backpack.
Bug 3:
I am unable to reproduce it but when I removed my items from my backpack and immediately died, the items that were previously in my backpack duplicated. onDeath: dropContents: false destroyContents: false dropBackpack: false keepBackpack: true
Bug 4:
You can place your backpack, into your backpack.
Bug 5:
I seem to get spammed with this: http://pastebin.com/K6euhPgQ
Suggestion/Bug:
Is there possibly a way to prevent a player who has a BackPack in their inventory from purchasing it again? -OR- If you have multiple of the same backpacks in your inventory, when you open it, it will combine the backpacks inventory together. -OR- All backpacks have multiple inventories, probably not the best way to go.
@CraftySubZero
@QlimaxD
I've used a new inventory saving/loading system, which will keep names/lore.
This however, requires all backpack userdata to be erased, sorry.
The file can be located here
Seems to be a few glitches that come up every now and then with this plugin, for some reason some of my players lose access to their packs and are unable to open it, all the permissions are correct and such, happened to me as well being an OP with full permissions. Only way I was able to fix it was by wiping the userdata.
Also if you place enchanted items into the pack or another pack it wipes the enchantments and lores off of the item and renders packs unusable.