MenuFramework (not maintained)
1.1.4Hotbars, Anvil Menus, Villager / Trader Menus and Inventory Menus of any kind
! not a stand alone plugin !
Menu Framework
This MenuFramework library allows to simply create inventory interfaces. This includes menus in the player inventory, menus in all kinds of top inventories (Chest, Hopper, Furnace, Anvil, ...) and Trader Menus.
Requirements:
- Java 17
- Optional: ProtocolLib
Requirements when used with Maven:
Features
- Every Inventory Type as TopMenu
- Villager Menus with Trade Handlers and custom trades
- Anvil Menus with text input handler for every letter
- Pagination for all Menus
- Layering BottomMenus in player inventories, automatically restore Inventory when closed
- Hotbar Menus
- SubMenu ParentMenu hierachy for TopMenus
- Presets to easily style your Menus
- ListMenus that automatically render Lists with pagination
- Custom sidebar scoreboards
- Custom bossbars
Checkout the README or this pom.xml and its parent pom.xml for help.
Examples
Example code for a menu to teleport to online players:
Player player = (Player) commandSender;
ListMenu menu = new ListMenu(Component.text("Teleport to:"), 3);
menu.addPreset(MenuPresets.paginationRow(3, 0, 1, false, Action.LEFT))
for (Player target : Bukkit.getOnlinePlayers()) {
menu.addListEntry(Button.builder()
.withItemStack(ItemStackUtils.createCustomHead(target))
.withClickHandler(Action.LEFT, clickContext -> {
player.teleport(target);
}));
}
menu.open(player);Example from my own Server, in combination with resource pack:
Example of a menu from a shop plugin i currently make.
The player inventory is filled with a navigation menu that modifies the top inventory. Again, a resource pack was used.
Documentation and a guide on how to install and use the framework can be found here:
https://github.com/CubBossa/MenuFramework
This is my first published resource and I appreciate feedback and advice! :D
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta