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.
Hi,
Maybe I'm being really stupid. But I can't find the config file. Where is it supposed to be saved?
@deleted_7536780
I plan on updating when I get back from vacation. Just FYI, the Github code is old, as I forgot to update it. If you want a current version, decompile v1.3.1, update it, and recompile.
@ScottSpittle would you mind sharing?
Skype me Craig_B3
[RealisticBackpacks] This version of craftbukkit is not supported, please contact the developer stating this version: v1_6_R2
Temporarily compiled a version for myself, but i suggest updating it. xD
@slayr288
Thank you for the work you do and the support you give!
(People love to complain about amazing free things. Go humanity...)
@TampaPowers
Faldonboy has a point about virtual inventory loss/duplication happening on MC updates, but that's not the main reason why I do version checks. The main reason is that it's unavoidable. This plugin uses NMS code, and Bukkit has a safeguard for plugins that use NMS code. They change the package names of the NMS code on every Minecraft update, which will throw an error on start-up and stop the plugin if it doesn't support that package name. So, I implemented a version check that throws a readable error if I do not support that version.
Basically, the plugin will always break on everysingle Minecraft update. This isn't ideal, so I'm planning to change the virtual inventory storage to a different method that won't break every update.
@TampaPowers
I must agree with Slayr on this, I run 64 plugins and nearly half of them broke or had something go badly wrong with them upon updating to 1.6.2. Version checks help stop these kinds of problems, I would much rather just disable a plugin and wait for it to update over having it in the server causing problems. Especially with a plugin like this that uses virtual inventories, things can very easily go wrong with these types of plugins resulting in severe item loss or item duplication.
@slayr288
1.6.2 broke not a single plugin on all the other servers i host, just yours refused to work. Of course MC and CB changes things from one version to another, but in case of minor version changes it is and was highly unlikely it would break anything. I fix and compile all open-source plugins myself, since most still use Java 6 and version changes are mostly easy to work out. 1.6 was a real pain, but for 1.6.2 everything worked out of the box. Enjoy your vacation and when you get back you should see 1.6.2 like other minor version changes hasn't broken much, if even anything at all.
@TampaPowers
Bukkit changes their package names of NMS code with evey Minecraft update, so it will break with every Minecraft update 100%. If I didn't do checks, it would stop the on enable the same way, just with an error.
I'm on vacation so that's why I'm not updating it.
Just a quick suggestion for you: Know the information you post, and don't speculate.
Sometimes a plugin works on minor version changes without an update, but if the author decides to specifically have the plugin disable itself for such a version change then you you just can't help but wonder. Really now, this version checking is unnecessary and has no point. If the version change is significant enough to break functionality the plugin will throw an error and if not will work in most cases. Please remove this or update the day a new CB version comes out.
1.6.2 update?
Can you please add what I requested below because this would make your plugin realistic backpack more realistic.
Maybe you could make a warning. So that people that want to use this feature know: Oh thats glitchy...
@delsolsi213
It was a config option that I was thinking of implementing but didn't and forgot to remove it.
@slayr288
hi mate, im setting raidable to true yet i cant raid other player backpacks, is there something im doing wrong? and if its not possible can you make the backpacks not be player bound? i would use another backpack plugin but i like the realistic feeling yours have.
@darkness1999
Not really possible to make stackable items not stackable without manually makin them not stack which would be glitchy. To my knowledge atleast.
@Bluemadness107
You most likely made an error in your YAML configuration. Do you have any errors in your console?
Can you add an option stackable: true/false If false you cant stack Backpacks
This option should also include the recipse. If this option was set to false you cant create 2 backpacks of the same type.
Can you add this option: a player can only have one backpack in HIS inventory and a player can only have one backpack of each type in his inventory.
After messing with config.yml when i issue any rb commands nothing appears.
@Frazimuth
Well, I havn't set default settings for options if they are not set, so I'll do that.
@slayr288
I'm pretty sure I messed something up on my end in the config file. If I run it normally I don't seem to get any errors, but it seems like you can easily create loops in the config at least that's what I ended up doing. What I did was not include the "onDeath" portion for the other backpacks. I thought that it was a universal setting and not per backpack. Thanks anyway, I'll play around with it some more, love the plugin.
@Bladeroth
Yes, "I'm sure".