In the server, the use of GUI interface operation can reduce the number of instructions that the player needs to input, so that the player does not need to worry about too many instructions to remember. This plug-in allows players to interact more with the GUI rather than using instructions.
This plugin uses the plugin protocollib to send virtual items to display buttons.
This is just the library of my plugin -> GlobalMarket
Depends
- Required: [ Protocollib ]
- JDK version 11 or above is better
Feature
- More convenient to build an item and add it to the GUI
- Provide shortcut for switching inventory
Usage
there are only Chinese tutorials on GitHub
draft
[ api ]
Create Item
ItemStack button = new ViewItemBuilder(Material.DIAMOND)
.name("§cButton")
.lore("§fClick Me!")
.action(ViewItem.ACTION_CONSOLE_COMMAND)
.value("give %player% diamond 1")
.build();Import
plugin.yml
depend: [ProtocolLib,CraftGUI]Your plugin .java
private static ViewGuide guide;
public void setupGuide() {
RegisteredServiceProvider<ViewGuide> rsp = Bukkit.getServer().getServicesManager().getRegistration(ViewGuide.class);
if (rsp == null) {
this.getLogger().warning("CraftGUI not found!");
return;
}
guide = rsp.getProvider();
...
}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