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:
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

CommandFunctionPermission
/backpackOpens your backpack.backpack.open.command.own
/backpack <Owner>Opens the backpack of the given player.backpack.open.command.other
/giveBackpackGives you a backpack.backpack.give.self
/giveBackpack <Player>Gives the given player a backpack.backpack.give.other
/reloadBackpackReloads 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:

PermissionDefault
backpack.crafttrue
backpack.open.itemtrue
backpack.open.command.ownOP
backpack.open.command.otherOP
backpack.give.selfOP
backpack.give.otherOP
backpack.reloadOP
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.

Exception

Showcase by Numero Uno


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    65448
  • Created
    Sep 11, 2013
  • Last Released File
    Aug 19, 2015
  • Total Downloads
    19,484
  • License

Categories

Members

Recent Files