Documentation/Bags
What is a bag?
A bag is a player-specific chest-like inventory that players can use as an expansion of their inventory. It can be accessed by either the defined "opener item", which can be received with the "/bag" command, or directly with the command. (can be configured in the configuration file)
A bag can be 6 different sizes:
- tiny (9 slots)
- small (18 slots)
- medium (27 slots)
- large (36 slots)
- extra large (45 slots)
- max (54 slots)
The "opener item" can be put in and out of the player's inventory at will (given that the setting for that in the config is set to true). It can't however be dropped or transferred to other inventories, like chests etc..
Can a bag be manipulated by others?
Yes. A bag can be viewed by those with the permission "playerbags.bag.other" by using the command "/playerbags view [player]". Actually manipulating the contents of the bag also requires the permission "playerbags.bag.other.edit".
The bag of a player can also be changed in size with the command "/playerbags setsize [player] [newsize]". Be aware, if the bag contains more itemstacks than the amount of slots the bag will have after the size conversion, those items are lost for good. It's best to take all of the bag's contents out before converting a bag to a smaller size.
What happens when a player dies?
By default, when a player dies, the contents of their bag is kept. This can be changed in the config, if desired. Players with the permission "playerbags.bag.keep" will always keep their bag's contents on death, regardless of the setting in the config.