Sueta
HA

HanGuiBuilder | A simple gui builder API

2023-04-18

A simple gui builder

·Plugin

What is this project? HanGuiBuilder is a Minecraft Spigot plugin API that is designed for developers. It simplifies the process of building GUIs and assigning commands to items within them, and is compatible with all versions of Minecraft.

Maven

<repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependency>
        <groupId>com.github.BingulHan</groupId>
        <artifactId>HanGuiBuilder</artifactId>
        <version>1.0</version>
    </dependency>

Example

new HanGuiBuilder(HanGuiBuilder.Size.THREE, "&b&lExample Gui", this).setAccessibleOnDragItems(false).addPlayer(event.getPlayer()).
               addItem(1, new GuiItem(new ItemStack(Material.GRASS), (p,g) -> {

                   p.sendMessage(ChatColor.GREEN+"You touched the grass!");
                   g.getPlugin().getServer().broadcastMessage(""+p.getName()+" touched the grass!");
                   
                   })).open();

Similar projects

Plugin →