Resource icon

SpigotMC Plugin VKBackPack 8.0.1

You must be signed in and/or upgrade to VIP to download this resource
Tested Minecraft Versions:
1.12-1.13.x
Languages Supported:
English
Contributors:
none
Under 18? Make sure you have your parent's permission before you buy!

Please make sure to have Java8 on your system.

For Plugin Support (bug report, feature request, etc), please use this site. You can also use
Spoiler: vk2gpz plugin support channel



This backpack works with TokenEnchant / AutoSell / InventoryFull. Mined/exploded blocks are automatically stored in the backpack, and AutoSell commands will check contents of backpacks as well as the player inventory!!!

This plugin provides a virtual backpack. A player can have multiple backpacks. Each backpack can be accessed through a command or a key item. You can customise what item to represent a key in config.yml.

Test Server:
  • testserver.vk2gpz.com.
Commands: (alias: vkbp, bp, backpack)
  • /vkbackpack help : display the help menu.
  • /vkbackpack reload : reloads config.yml.
  • /vkbackpack give <player> <size> [backpack_name] : issue a backpack of size <size> to <player>.
  • /vkbackpack open <backpack_name> : opens the backpack called <backpack_name>
  • /vkbackpack key <name> : get a key to open your backpack named as <name>.
  • /vkbackpack list : get a list of your backpacks.
  • /vkbackpack setmax <player> <max> : sets the maximum number of backpacks <player> can have to <max>.
  • /vkbackpack rename <oldname> <newname> : rename the backpack from <oldname> to <newname>.
  • /vkbackpack remove [player] <name> : throw away <name> backpack. If [player] is present [player]'s <name> backpack will be removed.
  • /vkbackpack release : flags the backpack to be released/traded.
  • /vkbackpack claim : claim the backpack associated with the key you're holding. If it's someone else's backpack, it will become yours.
  • /vkbackpack setsize <player> <newsize> : sets the size of the backpack in hand of the player <player> to <newsize>."
Permissions:
  • vkbackpack.admin : allows you to use reload, give, setmax commands
  • vkbackpack.use : allows you to use key, list commands
  • vkbackpack.open : allows you to use /bp open command to open a backpack
  • vkbackpack.rename : allows you to rename your backpack
  • vkbackpack.trade : allows you to use /bp release|claim command to trade your backpack.
Installation:
Install VKBackPack.jar in the plugins folder.

Work with:
Spoiler: Sample Config.yml
Code (Text):

Messages:
ErrorMsg: "&c [VKBP] : Some error occured."
MaxSet: "&a[VKBP] The maxinum number of backpacks &e%player% &acan have is set to &e%number%&a."
GaveBP: "&a[VKBP] The backpack (name: &e%bpname%&a) of size &e%number% &a was given to &e%player%&a."
GaveKey: "&a[VKBP] A key for the backpack (name: &e%bpname%&a) is issued."
Named: "&a[VKBP] A key for the backpack (name: &e%bpname%&a) is issued."
NoSuchBP: "&a[VKBP] A backpack called &e%bpname%&a was not found."
ReNamed: "&a[VKBP] A key was renamed from &e%oldname%&a to &e%newname%&a."
Maxed: "&c[VKBP] You already maxed out with your backpacks."
Removed: "&a[VKBP] You've threw away a backpack called &e%bpname%&a."
NoBP: "&c[VKBP] You cannot hold any backpack."
Needs9: "&c[VKBP] Backpack size must be multiple of 9."
Released: "&a[VKBP] You have flagged %bpname% to be claimable backpack."
Claimed: "&a[VKBP] You have claimed %player%'s backpack named %bpname%."
InvClear: "&6Cleared all inventory items from %player%."
NoWorld: "&c[VKBP] You cannot use it in this world (&e%world%&c)."
NoRegion: "&c[VKBP] You cannot use it in this region (&e%region%&c)."
SizeChanged: "&a[VKBP] The size of %player%'s backpack (&e%bpname%&a) has been changed to &e%size%&a."

# Customizable help messages
HelpMessages:
banner:
msg: "=== &e[&aVKBackPack Commands List (%version%)&e] &r==="
help:
msg: "&a/vkbackpack help : display this help menu."
reload:
msg: "&a/vkbackpack reload : reloads config.yml."
permission: "vkbackpack.reload"
give:
msg: "&a/vkbackpack give <player> <size> [backpack_name] : issue a backpack of size <size> to <player>."
permission: "vkbackpack.admin"
addmax:
msg: "&a/vkbackpack addmax <player> <num> : adds the specified number to the maximum number of backpacks <player> can have."
permission: "vkbackpack.admin"
setmax:
msg: "&a/vkbackpack setmax <player> <max> : sets the maximum number of backpacks <player> can have to <max>."
permission: "vkbackpack.admin"
open:
msg: "&a/vkbackpack open [player] <backpack_name> : opens the backpack called <backpack_name>"
permission: "vkbackpack.open"
key:
msg: "&a/vkbackpack key <name> : get a key to open your backpack named as <name>."
permission: "vkbackpack.use"
list:
msg: "&a/vkbackpack list [player]: get a list of your backpacks."
permission: "vkbackpack.use"
rename:
msg: "&a/vkbackpack rename <oldname> <newname> : rename the backpack from <oldname> to <newname>."
permission: "vkbackpack.rename"
remove:
msg: "&a/vkbackpack remove [player] <backpack_name> : throw away <backpack_name> backpack."
permission: "vkbackpack.use"
release:
msg: "&a/vkbackpack release : releases the backpack represented by the key you're holding."
permission: "vkbackpack.trade"
claim:
msg: "&a/vkbackpack claim : claims the backpack represented by the claimable key you're holding."
permission: "vkbackpack.trade"
setsize:
msg: "&a/vkbackpack setsize <player> <newsize> : sets the size of the backpack in hand of the player <player> to <newsize>."
permission: "vkbackpack.setsize"

# adjust these event priority if those event processes from this plugin
# interfere with other plugins' event processes.
EventPriorityMap:
BlockBreakEvent: "HIGH"
PlayerCommandPreprocessEvent: "LOWEST"

# prefix for the name of 4DBackPack inventory
BackPackPrefix: "VKBackPack"

# default number backpacks a player can have.
DefaultMaxBackPacks: 3

# if this option is true, <size> in the "/bp give <player> <size>"
# is specifed as the number of rows instead of the number of slots.
UseRowAsSize: true

# if this is "true", VKBackPack will process automatic pick up of items.
# to let AutoSell to do autopickup, set this option "false"
AutoPickUp: true

# followings are options when AutoPickUp is true
AutoSmelting: true
StoneToStone: true

# This is not implemented yet...
AutoBlocking: true

# if the following flag is true, backpack key will act as a physical
# backpack item.
PhysicalBackpack: false
# if the above option is true, you probably should set the following
# two display flag to "false"
DisplayReleasedMessage: true
DisplayClaimedMessage: true

# This is the item, which will be used to open each backpack.
KeyItem: CHEST #TRIPWIRE_HOOK
KeyItemName: "&dVKBackPack-Key"
KeyItemLore:
- "&a%bpname% for %player% (%slot%)"
- "&aClick to open BackPack!"


# if this is "true", a key will be issued upon execution of "give" command.
IssueKeyUponGiveBP: true

# Disabled Worlds
DisabledWorlds:
- someworld

# Disabled Regions (WorldGuard regions)
DisabledRegions:
- someregion

# Backpack listing header format
ListHeader: "=== &e[&aBackPack List&e] &r==="
ListPlayerHeader: "=== &e[&b%player% &acan have up to &b%max% &abackpacks&e] &r==="

# clear inventory commands/aliases
ClearInventoryCommands:
- ci
- clean
- clearinvent
- clearinventory



For Developers:
You can access VKBackPack's backpack/inventory management methods through its public methods:
Spoiler: public API
Code (Text):

import com.vk2gpz.vkbackpack.VKBackPack;
...
public VKBackPack getVKBackPack() {
Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin("VKBackPack");
if ((plugin == null) || (!(plugin instanceof VKBackPack))) {
return null;
}
return (VKBackPack)plugin;
}
....

Player p = ....;
// returns true if p has a backpack.
boolean flag = VKBackPack.hasBackPack(p);

// returns a list of all backpack inventories.
List<inventory> allbpinvs = VKBackPack.getAllBackPackInventories(p);

// returns a list of backpack inventories, all of which have some item in it.
List<inventory> filledbpinvs = VKBackPack.getBackPackInventories(p);

// returns a list of all inventories including backpack and player inventory
List<Inventory> allinvs = VKBackPack.getAllInventories(p);

// returns a list of all inventories including backpack and player inventory with some items in it.
List<Inventory> invs = VKBackPack.getInventories(p);

ItemStack item = ...;
// attempt to add item to p's backpack. any items did not fit will be returned.
HashMap<Integer, ItemStack> leftover = VKBackPack.addItemToBackPack(p, item);

// attempt to add item to p's inventory followed by p's backpack. any items did not fit will be returned.
HashMap<Integer, ItemStack> leftover2 = VKBackPack.addItemTo(p, item);

// checks whether item will fit into p's backpack or not.
boolean willfit = VKBackPack.wontFit(p, item);
...
Author
TGN
Downloads
6
Views
230
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource