CraftGUI icon

CraftGUI -----

Frame of Minecraft Server GUI



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

  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

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 ( ) ;
      ...
}
Resource Information
Author:
----------
Total Downloads: 2,457
First Release: Aug 21, 2022
Last Update: Sep 3, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings