Craftable Backpacks
Craftable Backpacks
This plugin adds a craftable backpack with 18 slots by default. The size can be changed. The client doesn't need any mods. Everything is manged by the server.
Crafting
This is the default crafting recipe:
You can change it in the crafting.txt file.
Update Annotation
If you are a new user of this plugin you can skip this point.
Configuration Changes
You need to put the following lines into you config.yml file, if they are not already there:
BackPackMaterial: LEATHER
DropBackpackContentOnDeath: true
You can do this by copying this line into the config if you have individual settings or by deleting the old config to get a new one.
UniqueId instead of Name
In the Minecraft News you can read: "We have pushed out an update that supports name changes, however we will not allow name changes until a future date."
That means plugin developers new have to use UUIDs (=UniqueId), because Name won't be static anymore. I changed the way the plugin saves the backpacks from the player's name to the player's UUID. As a result of this the plugin versions 1.2 and below wont be able to open Backpacks from the versions 1.3 (and higher). Of course the verison 1.3 will translate the old backpacks into the new format.
Features
- Craftable Backpack
- Resizable
- Can be opened by command(needs OP) or by rightclicking with the backpack
- Can be disabled in specific worlds.
- Crafting recipe can be changed.
- Saves automatically
- Backpacks can be grouped.
- Changeable item and durability
- If wished, drops content on death
Commands and Permissions
Command | Function | Permission |
---|---|---|
/backpack | Opens your backpack. | backpack.open.command.own |
/backpack <Owner> | Opens the backpack of the given player. | backpack.open.command.other |
/giveBackpack | Gives you a backpack. | backpack.give.self |
/giveBackpack <Player> | Gives the given player a backpack. | backpack.give.other |
/reloadBackpack | Reloads the plugin. | backpack.reload |
Configuration
The plugin automatically creates a config with the default settings. You can edit this file if you want (the old backpacks might not work with the new settings). If you want to reset your config simply delete it.
Permissions
Here are all permissions you can use:
Permission | Default |
---|---|
backpack.craft | true |
backpack.open.item | true |
backpack.open.command.own | OP |
backpack.open.command.other | OP |
backpack.give.self | OP |
backpack.give.other | OP |
backpack.reload | OP |
backpack.size.X (1 <= X <= 6) | false |
More information to backpack.size.X can be found in the next paragraph.
Resizing the Backpack
You can change the size of the backpack:
Minimum: 1 row
Maximum: 6 rows
If you want specific groups to have different backpack sizes you can give them permissions from backpack.size.1 to backpack.size.6.
If a player has more than one backpack.size.X permission the highest will be used. If a player has no such permission the size definded in the config will be used. Whenever I say size I mean the size of the backpack in rows.
Changing the Crafting Recipe
You can edit the crafting recipe of the backpack in the crafting.txt file.
It looks like this by default:
L=LEATHER
C=CHEST
LLL
LCL
LLL
If you want to change it pay attention to these points:
- Dont write more than one "information" in one line.
- In the recipe space acts like air.
- You dont need a 3x3 recipe like here, it can be everything between 1x1 and 3x3. The width and the height don't need to be the same.
- If you don't know the exact name of a item, you can also use the ID.
- Use only one character in front of each "=".
- Don't put empty lines in the file.
If you want to disable the crafting for a user set the permission backpack.craft to false for him.
Changing the Item Material
You can change the item material of the backpack, but all backpacks created with another(the old) Material will still be usable.
If you dont want previous backpacks to be usable you have to change the durability in the config.
You can use (placeable) blocks as item, they wont be places when the user opens the backpack, but you should pay attention to the durability: Blocks only can use a few numbers for durabilitys, most only allow zero, but e.g. the skull-block's durability can be higher than 0 and changes the skull-type.
Banning Worlds
If you want to disable using the backpack in a world, put the name of the world in the bannedWorlds.txt file. You can get the name of the world, by reading the name of the folder in which the world data is saved. Don't put more than one name in one line.
Grouping Backpacks
You can group backpacks by creating a file with the group name as file name(you can add ".txt") in the "groups" directory. In this file you can put as many world names as you want, but don't put more than one name in one line. If you don't know the name of the world, read the previous paragraph. The backpacks saved in a group are bound to the group name, so don't change it, if you don't want to reset the backpacks. Every world, that is not in a group or banned, uses the same backpacks as all worlds that are not in group. Don't put a world in more than one group.
Usage
This can be used e.g. if you have a skyblock world, and you don't want your players to transport items via backpack into this world from the normal world.
Attention
If editing the folder in which you are running the server needs admin rights, the plugin can't work, as it has to create a own folder in the "/plugins" Folder, where it saves important data as the config and the backpacks. Prevent using special characters in the config, otherwise the plugin could not be able to load.
Support
Please write a comment if you have any problems with the plugin or detected a bug. Please send me your server.log file if there was a exception. Your log file could be very big if you often use your bukkit server. If this is the case please send me only parts, which are similar to this picture, because they're interesting for me.
/backpackReload dont work for me
and my backpack is leather and not a chest .... is this normal?
Feature Request: Option for more Backpacks
one with xx slots 2 with yy and and and
Can I use this with CB1.7.2-r0.3?
Add command /backpack <player> that would be able to open the backpack of other players.
and to add to the perms:
backpack.craft.<size>
so we can offer different groups different size packs
Could you add some permissions please ? For instance :
Thanks :)
Where Do i Download It?
is there a permission to craft the backpack ? i don't want all my groups to be able to craft the backpack !
Suggestion:
Have the backpack size determined by the permission.
A player with the permission backpack.size.1 would get 1 row, a player with the permission backpack.size.2 would get 2 rows etc....
Thanks for this great plugin,
Darthmineboy
@Lice23
Das könnte ich durchaus machen, allerdings fallen mir da nicht genugend sinnvolle rezepte ein. Die muss man dann halt selbst festlegen ;)
Es lag an WorldInventories. Mit Multiverse-Inventories geht es super. Ich hätte da auch gleich noch ein kleinen Vorschlag , und zwar verschiedene Craftung rezepte für verschieden grosse Rucksäcke.
@Lice23
Ich kann dir nicht genau sagen woran es liegt, aber anscheinend verwendet eines der plugins eine andere Speichervariante der Inventare, wodurch der Farbcode am Anfang des Backpacknamens, der das grün erzeugt(§2) zu ?2, da das plugin Probleme mit dem Zeichen "§" hat. Hirbei kann ich dir leider nicht helfen, da müsstest du dich an den entwickler des plugins wenden, das dieses Problem verursacht.
Hallo , ich habe folgendes Problem , Der Rucksack lässt sich Problemlos craften und auch benutzen , aber wenn man sich ausloggt und dann wieder einloggt heisst das item ?2Backpack und man kann es nicht mehr benutzen. ich benutze zur Zeit craftbukkit-1.7.2-R0.3. Installierte Plugin Craftbook , worldinventorys , multiverse
Das sind die plugins wo ich vermute das sie daran schuld sein können . Bitte um Antwort. Lg Lice
@erdrickk
I'm not quite sure. If all data about the plugin is saved "in" the item with the default bukkit methods everything should be fine, but I think it likely will work. Just test it with one item, reload/restart the server and you sould have the answer.
Does this plugin support custom items from Dark Mythos and Mythic Drops and such?
@ardragoon
Ich kenne mich leider garnicht mit permissions aus, ich kenne nur OP ;) Muss ich mich erstmal informieren, aber ein reload befehl für das plugin lässt sich machen :D
der bukkit reload command ist absolut nie zu verwenden. macht nur probleme ;)
abgesehen davon.
Plugin getestet und läuft wie ne 1 :D
nur noch eine kleinigkeit. Wie währe es damit das man per permission sagen kann wie gross der backpack ist?
ich nutze ontime. je länger ein spieler online ist desto mehr permissions hat er.
zb 5 stunden am server = grösse 1 20 stunden am server = grösse 2
etc etc
oder überhaupt eine permission das ein neujoiner erstmal garnicht den rucksack verwenden kann :>
greets ardragoon
@ryanthemagi
You could use the bukkit reload command, or do you have that much plugins that you can't use it?
Does this plugin have a command to reload the config/banned worlds from in game? If not, it needs it.
@ardragoon
So die 1.5 ist da, habe das "Gruppensystem" jetzt auch schon umgesetzt, kommt in der 1.6. Bukkit lässt wie immer warten ;)
du kennt ja sicher multiverse. dazu gibt es das praktische multiverse inventorys.
somit kann ich sagen welche welten welche inventorys haben. Sprich "normale welten" haben n eigenes inventory und wenn man zb skyblock odercreativwelt etc besucht eben ein anderes.
dies währe bei dir, so wie du sagst, genau so lösbar :D solange ich die welten bestimmen kann ^.^ in dem fall gibts ne dicke 1 wenn das so funktioniert :D
udn ich habe keinen stress ;) sprich. lass dir zeit und mach es richtig ;)
lg ardragoon