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
Feature
Usage
there are only Chinese tutorials on GitHub
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
Spoiler: 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
Your plugin .java
[ api ]
Create Item
Code (Java):
ItemStack button = new ViewItemBuilder (Material. DIAMOND )
. name ( "§cButton" )
. lore ( "§fClick Me!" )
. action (ViewItem. ACTION_CONSOLE_COMMAND )
. value ( "give %player% diamond 1" )
. build ( ) ;
plugin.yml
Code (YAML):
depend
:
[ProtocolLib,CraftGUI
]
Code (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 ( ) ;
...
}
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 ( ) ;
...
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.12, 1.13, 1.14
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CraftGUI is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.13, 1.14, 1.15 and newer. Downloaded 2,747 times (via Spigot). Download it and open it directly in the game.