Sueta
CR

CraftGUI

1.1.6

Frame of Minecraft Server GUI

·Plugin

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

draft

Screenshot 2022-08-19 132900.png

[ 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 →