Home›Java›Mods›ItemBox
Overview
Itembox is a plugin that basically gives players an item "mailbox" that persists over server restarts, and other players can send items to other player's mailboxes. Players can claim items from their mailbox anytime.

Admins can also send special Dynamic Boxes, which give a randomised set of items (configurable)
Plugin is still in beta.

[​IMG]

Requirements:

Java 8 and above
Tested with spigot 1.11.2, but should work for any version

Features
Commands

Dynamic Box format
Code (Text):
dynamic-boxes:
  default:
  - [material name]:[itemdata (optional)],[chance out of 100 to appear] name:&bExample lore:&cLore<newline>&blike<newline>this [enchantment]:[level]
Note that name, lore and enchantment is optional.

Permissions


API

Other plugins can also send items to players.
Code (Text):
PlayerInfo info = ItemBox.getInstance().getPlayerDataManager().getOrLoadPlayerInfo(OfflinePlayer p);
Use the above code to get a player's info. From here, you can clear the box items, send items, or remove items from the box.
Methods for PlayerInfo:
Spoiler
public void clearItems() - Clear all items in itembox

public void addItem(ItemStack item) -
Add an item to itembox

public void removeItem(ItemStack item) -
Remove specified item from itembox. Doesn't do anything if item isn't inside. Specified to amount as well.

public Collection<ItemStack> getItems() -
Gets all items in an itembox

public OfflinePlayer getPlayer() -
Gets the offlineplayer associated with the itembox

Todo:

Usage of source:
You can use any code in the source, but add me ( @Hex_27) as a contributor. If your plugin is open sourced, my username is to be commented above the used code. If you're just looking for the scroller inventory in the plugin, you can find the code and how to use it in one of the resource posts I've made in Plugin Development.

The language file code wasn't made by me, only modified by me.

Admit it, this default icon fits the plugin well.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

ItemBox is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 4,324 times (via Spigot). Download it and open it directly in the game.

Explore more