MenuAPI
This plugin is for developers only, if you're a server owner then this isn't intended for you.
MenuAPI facilitates you the creation of menu through inventories. The process is really simple and the API contains some default classes to minimize the code you need to write.
The wiki isn't ready yet, so if you need to use a specific functionality check out the source code on GitHub.
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.stack9</groupId>
<artifactId>MenuAPI</artifactId>
<version>v1.4.1</version>
</dependency>
</dependencies>
Gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.stack9:MenuAPI:v1.4.1'
}
Usage
package me.example.project;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import it.stack9.menuapi.menu.*;
public class Example {
public static void main(String[] args) {
Player player = Bukkit.getServer().getOnlinePlayers()[0];
Menu menu = MenuFactory.create("Test menu", Menu.CHEST_SIZE, new SimpleMenuListener() {
@Override
public void onSelect(Menu menu, Player player, Option selection) {
player.sendMessage("You selected the option #" + selection.getId());
}
});
menu.setOption(4, new Option(1, new ItemStack(Material.DIRT)));
menu.open(player);
}
}Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta