Backpacks
Backpacks
What is it?
Backpacks is a plugin that provides each player with a backpack in which they can store items. You can configure how much space each player's backpack has, as well as other aspects of the backpack, using permissions (see below). I have recently added SQL support that enables the backpacks to work cross-server if you use servers linked by bungeecord, lilypad etc. A recent addition to the plugin is that if a player with a backpack has a full inventory and they pickup an item, it goes into their backpack.
Permissions
backpack.1 Sets the backpack to the size: 9x1
backpack.2 Sets the backpack to the size: 9x2
backpack.3 Sets the backpack to the size: 9x3
backpack.4 Sets the backpack to the size: 9x4
backpack.5 Sets the backpack to the size: 9x5
backpack.6 Sets the backpack to the size: 9x6
backpack.keepOnDeath Allows players to bypass the config value for dropping items on death.
Commands
User Commands
/backpack Opens the backpack you have permission for!
Admin (OP) Commands
/backpack [Player name] Opens a player's backpack.
Configuration
Drop-On-Death
If this is set to true the content of the players backpack will drop on death. If the player had the permission 'backpack.keepOnDeath', this would not affect them.
Title
This is the title on the top of each backpack. On the example backpack it is "Your Backpack". You can set a title for each size of backpack (1 to 6).
DisabledWorlds
Here you can define the worlds in which players cannot open their backpacks incase you have, for example, a creative world.
Alright; new plugin uploaded, should be accepted by the admins soon. Thanks for all your patience guys.
Sorry for me not being available for so long. I have personally been busy, and have not been available to update this plugin that often. I have sent off the source to someone so they can hopefully fix most of the bugs in the plugin and hopefully keep it updated. Thank you all for your patience. :)
@Ryex95
Which permission plugin are you using?
@Ryex95
it works perfectly to me but it should be better to add thoose commands which Ryex95 said, for example like this? /backpack upgrade <player name> <size> size: 1 = 9x1, 2 = 9x2, etc ..... also could you add a permission for the command: /backpack [Player name] like this backpack.others Thanks.
Can you add comands to edit the backpack size of a certain player in-game?
Because if a player has for example a 9x1 backpack and I promote him to a rank where he should have a 9x2 backpack, he gets an invalid backpack and I need to change manually his backpack size in the file and restart the server.
If it could update automatically according to permissions upon a promotion it would be much better.
I'm sorry, but this is terrible. Uninstalled. This plugin makes players not drop anything, but lose everything. What I mean is that my players and I, when we die we don't drop anything, but none of our items remain in our inventory. I will install this if this bug is fixed, but until then, I'm not going to use this.
@Ryex95
They are stored in the players file as a certain size. However, I don't think it should make much of a difference.
I have bigger backpacks for better ranks, but when someone ranks up, the size of the backpacks doesn't update causing the backpack to be invalid. Does this need a fix or am I doing something wrong? I'm using v3.7
@LordKainzo
And for all needing this plugin to work and to stop the ticking player bug, give ALL players permission to a backpack. If you want them to be able to use it, give them the permission backpack.use.
Disclaimer: Use this link at your own risk. Bukkit does not approve of links posted without approval.
So, when a player joins and they don't have permission for any sort of backpack, it crashes them. Basically what I'm doing is intercepting the backpack command, if they don't have permission to use backpacks, it doesn't let them open it. Just follow above and you'll be fine.
@travja
Sigh, unfortunately it may be too late, my map is coming in less than a day! hah.
@LordKainzo
I sent him a PM on what's causing the bugs and how to fix it. Hopefully he'll get a release out soon.
@rb2750 :3 Any news on the fixes?
Also having the same problem as Melonking. Please fix! Using last version!
I'm having the same problem as @Melonking. It only happens sometimes though.
Would it be possible to add support for Phatloots? Currently opening a backpack is like opening a loot editing gui for Phatloots and I can take the collections, time reset clock and whatnot out of the backpack.
EDIT: It seems this bug only happens if I have a Phatloot starting with "Your".
[13:38:01 WARN]: Failed to handle packet for /127.0.0.1:50250 net.minecraft.server.v1_7_R3.ReportedException: Ticking player at net.minecraft.server.v1_7_R3.EntityPlayer.i(EntityPlayer.java:319) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:356) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.PacketPlayInFlying.a(SourceFile:137) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.PacketPlayInPosition.handle(SourceFile:63) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:180) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:713) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1475] Caused by: java.lang.NullPointerException at com.rb2750.backpack.Backpack.getPlayerBackpackInventory(Backpack.java:318) [?:?] at com.rb2750.backpack.EntityItem_v1_7_R3.b_(EntityItem_v1_7_R3.java:65) [?:?] at net.minecraft.server.v1_7_R3.EntityHuman.d(EntityHuman.java:450) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.EntityHuman.e(EntityHuman.java:442) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1315) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.EntityHuman.h(EntityHuman.java:162) [spigot.jar:git-Spigot-1475] at net.minecraft.server.v1_7_R3.EntityPlayer.i(EntityPlayer.java:261) [spigot.jar:git-Spigot-1475] ... 10 more
EDIT: If I downgrade to 3.7 this is fixed, every build after bugs.
it gives me internal error whenever you pick up items using backpack
@LordKainzo
No, I mean dropping items with the Q key. (or whatever key you've set).
When closing a horse (didn't test donkey) inventory (you know, where the saddle and armor go), Backpacks v3.6 for Minecraft 1.7.2-R0.3 throws this error:
http://pastebin.com/xeYxunp2
This is only because the server is running craftbukkit-1.7.2-R0.4, right?
@rb2750
Seeing issues - this actually crashed/kicked everyone from my test server http://pastie.org/private/fn708tmfqtncaqh8s4zwg http://pastie.org/private/1pomgb6snnpuer7fpcavta (internal server error)
This happens whenever you pick up a MASSIVE amount of items floating on the ground, a double chest worth of stuff - it will kick you with internal server error.