Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryAction;
public class GoToSubMenuHandler implements IMenuItemClickHandler
{
private Menu goToMenu;
public GoToSubMenuHandler(Menu goToMenu)
{
this.goToMenu = goToMenu;
}
@Override
public void onClick(MenuItem item, Player player, InventoryAction action)
{
player.closeInventory();
goToMenu.open(player);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.