SimpleBackpacks
Description
SimpleBackpacks aims to be the simplest yet most expansive backpack plugin for Bukkit.
Just pop in the jar, give your users a permission node (or two for bigger backpacks) and be done with it.
Enjoy! ^_^
Features
- Simple command to open your backpack
- Ability to open other player's backpack (with proper perm node)
- Admin can set if death clears player backpacks or not
- Admin can set if death drops your backpack contents to the ground or not
- Admin can grant a perm node to exempt from emptying backpack on death (great for donators!)
- Backback size based on a simple permission node (Have 1 - 6 rows of backpack space).
Commands
- /backpack (player)
- Open your backpack (size based on your permission limit) or someone else's.
Permissions
- backpack.use
- Gives access to open a backpack with default limit of 1 row. (Aliases: /bp, /purse, /bag, /napsack, /satchel)
- backpack.use.other
- Give access to open other player's backpack. Other player MUST be online.
- backpack.exempt.empty-on-death
- Players with this perm will not have their backpacks emptied when they die.
- backpack.limit.X
- The row limit for that user. Only accepts 1 through 6 in place of X.
Default config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Enable debug info in console debug-mode: false # Enable colors in console output color-logs: true # Should the user's backpack empty to the ground when they die? # A false value will leave the player's backpack contents alone. empty-backpack-on-death: false # If empty-backpack-on-death is true should we drop the items to the ground? # A false value will just make the backpack items disappear. drop-backpack-items-on-death: false |
Todo
Have a suggestion? Leave a comment!
F.A.Q.
- Why are my color codes turning into double question marks?
- Because your server is not properly setup. The Java environment must use UTF8 encoding. This is a shortcoming of Bukkit itself, and they have no plans to fix it as they don't feel its broken. If your server is on a remote host you may need to contact your host requesting this change. See this comment for more information
Metrics
This plugin uses metrics to collect stats! It only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
[17:35:49] [Server thread/ERROR]: Could not pass event PlayerDeathEvent to SimpleBackpacks v1.6 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at org.bukkit.craftbukkit.v1_7_R2.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:366) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityPlayer.die(EntityPlayer.java:388) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityLiving.damageEntity(EntityLiving.java:739) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityHuman.damageEntity(EntityHuman.java:751) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityPlayer.damageEntity(EntityPlayer.java:467) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.Entity.B(Entity.java:335) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityLiving.B(EntityLiving.java:159) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.Entity.h(Entity.java:255) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityLiving.h(EntityLiving.java:1273) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityHuman.h(EntityHuman.java:162) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.EntityPlayer.i(EntityPlayer.java:260) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java:355) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.PacketPlayInFlying.a(SourceFile:137) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.PacketPlayInFlying.handle(SourceFile:8) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java:77) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:703) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:566) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:472) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] Caused by: java.lang.NullPointerException at net.pl3x.simplebackpacks.listeners.PlayerListener.onDeath(PlayerListener.java:90) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.8.0_05] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.8.0_05] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [spigot.jar:git-Spigot-1.4.5-R0.2-1802-g21760c6] ... 25 more [17:35:51] [Server thread/INFO]: [Scavenger] Player respawn Minizzile
@Jleeevinnn
Try run Bukkit, Not spigot.
@Pocketkid2
Maybe just use Bukkit's Default permissions?
I might add it in the next update when I get the chance.
@doomlordking
Please run Bukkit, Spigot isn't supported by Bukkit.org
@Eracle93
Are you sure your permissions are setup correctly? Don't think anyone else has had this problem.
@doomlordking
The plugin is for Bukkit, not Spigot.
What does this error means? http://pastebin.com/6c8KH6As and http://pastebin.com/miyBnWix
I can't use the command /backpack on the others players. Whenever I try, it says "You don't have access to that command!", even if I added the permission backpack.use.other. I'm using PermissionsEx.
Could you make this plugin have a config value to change the default number of backpack rows? I am running a small private server that doesn't use permission managers, and I would love to have more than 1 row as that is the default. Thanks!
20.05 00:55:05 [Multicraft] Skipped 11 lines due to rate limit (30/s) 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:686) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:516) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1412) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1545) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1569) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityZombie.h(EntityZombie.java:228) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityMonster.h(EntityMonster.java:25) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:151) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1315) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityZombie.e(EntityZombie.java:160) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityMonster.e(EntityMonster.java:21) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityInsentient.e(EntityInsentient.java:314) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1452) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityInsentient.bm(EntityInsentient.java:441) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.PathfinderGoalSelector.a(PathfinderGoalSelector.java:108) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.PathfinderGoalMeleeAttack.e(PathfinderGoalMeleeAttack.java:100) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityZombie.n(EntityZombie.java:232) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityMonster.n(EntityMonster.java:100) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityPlayer.damageEntity(EntityPlayer.java:468) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityHuman.damageEntity(EntityHuman.java:751) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:739) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at net.minecraft.server.v1_7_R3.EntityPlayer.die(EntityPlayer.java:389) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:387) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:47) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [Spigot.jar:git-Spigot-1472] 20.05 00:54:55 [Server] INFO org.bukkit.event.EventException 20.05 00:54:55 [Server] ERROR Could not pass event PlayerDeathEvent to SimpleBackpacks v1.6
removed.
Hey BillyGalBreath,
I have a question, I don't have a working/active Permission plugin, can I add a line of code to the basic config file to set a base number of rows for a backpack? And if I could, what would it be? I really like this backpack plugin, but it has 9 slots (One row) at default and I can't change that without a working Permission plugin.
-Colin
Simple and effective, I like it.
@gamermomoe
Yes. I already started looking at how I'm going to upgrade to the new system. I am currently unable to because its incomplete. We're all going to have to wait until a dev build of 1.8 is released then I can get started on that.
I plan on making the transition as simple and painless as possible, but that all depends on how Bukkit implements the system. Worst case scenario we will need to wipe the entire userdata and start fresh. I hope it doesnt have to come to that, though.
Is this plugin going to be effected by the 1.8 UUID change?
@BillyGalbreath
Thanks for the quick fix man, I really appreciate it.
Uploaded v1.6 (Jenkins Build #17)
Fixed:
Added:
@gamermomoe
So sorry about that. It was a small bug on my part, but I've fixed it in Jenkins Build #17.
@BillyGalbreath
Thanks for the update man. I seem to have run into a problem. I use the empty-on-death permission node as a donor perk. However it doesn't seem to be working. I have both empty-backpack-on-death and drop-backpack-items-on-death set to true. Then I gave myself the backpack.exempt.empty-on-death permission node and killed myself by drowning. All the contents of my backpack were dropped on death. Any ideas?
Uploaded v1.5 (Jenkins build #15)
Fixed:
Added: