- Tested Minecraft Versions:
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- Source Code:
- https://github.com/KxmischesDomi/BungeeInventories
- Contributors:
- KxmischesDomi
Documentation
Better Readable Documentation on Github
This project is archived and will no longer be updated.
Setup
Download the newest version of the API's and import them into you're plugins You don't have to make a Spigot Plugin with the Library, only if you want to change something described in the following spigot documentation Don't export the Libraries, just put them on your servers as plugins.
Bungeecord
Creating an Inventory:
Code (Text):
BungeeInventory chestInventory = new BungeeInventory("§7Server-GUI", 3*9);
BungeeInventory furnaceInventory = new BungeeInventory("§7Multi Server Furnace", InventoryType.FURNACE);
Filling an Inventory:
Code (Text):
ItemStack lobbyItem = new ItemStack("CLOCK", "§6Lobby", "§7Click to be send to the Lobby");
ItemStack pvpItem = new ItemStack("DIAMOND_SWORD", "§bPvP");
inventory.addItem(pvpItem);
inventory.setItem(15, lobbyItem);
Sending an Inventory:
You can choose an OpenInventoryType to choose when the inventory should open or not. Default value is OpenInventoryType.ALWAYS
Code (Text):
BungeeInventoryManager.getInstance().sendInventory(player, inventory);
BungeeInventoryManager.getInstance().sendInventory(player, inventory, OpenInventoryType.ONLY_WHEN_INVENTORY_CLOSED);
Overwrite maySendInventory:
With overwriting this Factory you can block sending specified inventories when a condition is true or lots of other Things. This Factory returns a boolean.
Code (Text):
BungeeInventoryManager.getInstance().setMaySendInventory((player, inventory) -> {
if (...) {
// Inventory will be sent to Spigot Server
return true;
}
// Inventory will not be sent to Spigot Server
return false;
});
Spigot
Overwrite mayOpenInventory
With overwriting this Factory you can block sending specified inventories when a condition is true or lots of other Things like play Sounds. This Factory returns a boolean.
Code (Text):
BungeeInventoryManager.getInstance().setMayOpenInventory((player, inventory) -> {
if (...) {
// Inventory will be opened
return true;
}
// Inventory will not be opened
return false;
});
| Github | Discord |

BungeeInventories 1.1
A simple API to let players open inventories via bungeecord
Recent Updates
- » Beta v1.1 Nov 7, 2020