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.
@ardragoon
Die bannedWorld.txt kommt in der 1.5, aber bukkt lässt sich mal wieder zeit mit dem freistellen der neuen version -.- Wie gesagt, kann sein, dass die erst in 2 Tagen feritg sind aber es besteht eine realistische chance, dass es noch morgen kommt. Kannst du nochmal genauer erklären wie du das mit dem "nachdem wir die inventorys schon ändern können wie wir es wollen, währe das eben auch praktisch bei deinem plugin." meinst? Ich weiß nämlich nicht genau wie bukkit das mit den inventorys gelöst hat :D
EDIT: Ich glaube ich weiß jetzt was du meinst. Ich könnte es so machen, das man welten praktisch backpack nummern zuweißen kann, also z.B. world: 1 world_nether: 1 world_the_end: 1 skyblock: 2 irgend_eine_andere_welt: 3
das würde dann das ergeben was du beschrieben hast ;)
na das klingt doch schon mal klasse.
ich wollte einfach nur das der rucksack deaktivierbar ist.
eine andere lösung. vlt sogar ne bessere ist, das es für jede welt einen eigenen gibt.
wir bestehen aus survival und skyblock. ich sehe keinen grund in skyblock n rucksack zu verwenden. aber es gibt auch andere server. da gibt es nicht nur die 2 welten sondern 3 4 andere welten noch dazu. es sollte einem admin möglich sein zu sagen.
"hey pass auf. hier darfst du das und dort das und das"
nachdem wir die inventorys schon ändern können wie wir es wollen, währe das eben auch praktisch bei deinem plugin. wenn das klappt gibt es 10 daumen hoch :D
Sprich ich will. in der welt 1, 2 und 3 dürfen user das inventory teilen (standart + nether + end) und in der welt 4 (skyblock) haben sie ein anderes und in der welt 5 (jeder_nennt_sie_wie_er_will) ist das inventory auch wieder ein anderes.
dann währe das plugin top. naja. ne mysql einbindung fehlt da noch :X aber das muss erstmal ganz und garnicht sein.
soweit ist die arbeit extra fein und kann man lassen. :D
lg Ardragoon
PS: sollte das "bannedWorlds.txt" in 1.4 dabei sein funzt es nicht.
alle löschen. plugin rauf, und die "bannedWorlds.txt" fehlt. die "bannedWorlds.txt" per hand erstellen hilft auch nix ;)
@ardragoon
Danke ;) Ja du hast recht das ist ein Problem, ich werde mir eine Lösung einfallen lassen. Meinst du der Backpack sollte dann in gewissen welten deaktiviert werden, oder dass es für jede Welt einen eigenen geben sollte?
EDIT: Habe es jetzt so gemacht, dass man den Backpack in angegebenen Welten nciht öffnen kann. Die neue Version muss jetzt nurnoch von bukkit genehmigt werden. Kann 1-2 Tage dauern.
geile idee geile umsetzung. nur was mich stört ist das ich 2 welten habe. und die user die backpacks mitnehmen können. könnte man per permission den zugriff auf den rucksack verbieten?
immerhin ist es doof wenn die leuts in die skyblock welt unbegrenzt erde mitnehmen können aus der survival welt ;)
@Qwahchees
If I find out how to do that I will do it ;)
@FlOppythp
Yes, i might implement this in the next version.
@Karabin10203
Actually, I read somewhere that you can technically spawn an invisible person with the head of an item (say, a chest) and make it follow the player, aiming it right on the back.
Been a while since I seen it, but yeah :P
@Drazhar753
I'm sorry but currently I don't know wether this would be possible.
@Karabin10203
Would it be at all possible to have say a chest or something attached to the player's back to represent the backpack?
@Jemrada
The special charater seems to be "§" for the Minecraft color code. I'll fix that.
@Karabin10203
I didn't change anything. That is a fresh install of you plugin.
Here is copy of the error
Pastebin
@Jemrada
Have you edited the config? It looks like special characters as "_" are not allowed, but I didn't use them in the default config. So try again without special characters.
@Karabin10203
Thanks, well I am not able to get it to work on the server. I am getting errors when I start the server.
Here is a snapshot. Sorry had trouble with copy paste, so I did a screenshot instead.
You can see it here
@Jemrada
You are not missing anything. 1.7.4 should mean it works for 1.7.4 and every previous version. (It works for 1.7.4 clients on a 1.7.2 server)
This says for 1.7.4. When I go to the bukkit page. I only see, beta and dev builds for 1.7.2.
Am I missing something?
I am running beta 1.7.2-R0.3. Is it possible to make this functional with 1.7.2?
Thanks
@SnowBeetle
If you have something like WinRAR you could also open the Backpack.jar and get the default one in there.
Does the plugin create a folder named "Backpack" in the "plugins" folder? If it doesn't do this, there might be also a problem with saving the backpacks.
I'm getting the same null null item description. Deleting the config does nothing. Could you post the contents of the config file from a working config so I can compare it to mine? Thanks
@BunnyPig
First, the backpack should look like a leather item, because i'm not able to implement new textures, so that isn't a bug.
As it sais "nullnull" there must be a problem with you config, because the name of the Backpack is made out of a "color" (the Minecraft code for a color) and a real name. Make sure that you config hadn't been edited in the wrong way. Try to delet the "config.yml" file in the plugins/Backpack folder. The plugin will create a new, default one.
If you are/were running a version 1.7.2-R0.1 it was the server's problem, because this version is marked as broken.
I now tried to run a 1.7.4 bukkit beta server with this plugin and it worked, so the plugin should work..
If you still have this error it would be good to know for me wether you're running your server on Windows or somethis else, because this yould be the last possible source for this error, because i can only test it on Windows as i've only got Windows.
I hope I could help you.
PS: Sorry that i answered so late ;)
EDIT:
After some testing I was able to recreate this error, i simply had to remove some lines in the config file and then there was the nullnull-error. As I mentioned befor, the problem should be solved by deleting the "config.yml" file in the "plugins/Backpack" folder.
EDIT 2:
Make sure that you run the server in a folder, where the plugin has enough rigths to create the default config. If the folder is "protected" with admin rights the plugin can't create the config.yml.
Would love to use this plugin but all it says i "nullnull". I can craft the backpack, but it looks like a leather item and it's named nullnull. I can't open it either. Running latest Bukkit and Minecraft 1.7.2.
http://pastebin.com/mHnn1Kt0
@Kel007
I'll work on the expanding feature soon(so no, it doesn't exist yet) ;)
It looks like I missed to mention that it can be opened by rightclicking(with the item in hand). The command is just for OPs who dont have the item :D