Home›Java›Mods›CraftGUI
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

  1. More convenient to build an item and add it to the GUI
  2. Provide shortcut for switching inventory

Usage
there are only Chinese tutorials on GitHub

Spoiler: draft
Screenshot 2022-08-19 132900.png

[ 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 ( ) ;
 
Import
plugin.yml
Code (YAML):
depend : [ProtocolLib,CraftGUI ]
Your plugin .java
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 ( ) ;
      ...
}

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.

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.

Explore more