Skip to content

Odalita-Developments/OdalitaMenus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OdalitaMenus

Advanced yet simple to use inventory api for Paper plugins


Maven Central Version GitHub Release License Spigot Downloads


Getting started (Wiki)

(NOTE) If you're running on 1.20.6 or later, please make sure you use a Paper based server software. We no longer support Spigot for newer versions.

In order to get started you would need to add the libary to your project using maven or gradle

Maven dependency:

<dependency>
    <groupId>io.github.odalita-developments.odalitamenus</groupId>
    <artifactId>core</artifactId>
    <version>0.5.12</version>
</dependency>

Gradle dependency:

repositories {
    mavenCentral()
}

dependencies {
    implementation 'io.github.odalita-developments.odalitamenus:core:0.5.12'
}

Features

  • Simple menu setup (with annotation)
  • Menu types (inventory types)
  • Inbuilt items and option to create your own items
    • DisplayItem
    • ClickableItem
    • UpdatableItem
    • BackItem
    • CloseItem
    • OpenMenuItem
    • PageItem
    • ScrollItem
  • Refreshable items
    • Decide yourself when to refresh an item
  • Scheduler
  • Menu cache
    • Option to use global caching using a key which syncs the cache across the menus with the same key
  • Change title without reopening the menu
  • Option to cancel menu from closing NEW
  • Player inventory interaction
    • Click event
    • Item meta changer (client side)
    • Placeable items (option to place items from player inventory into your menu)
      • Shift click support NEW
  • Menu providers
    • This is the way how a menu should initialize it's items, this has to option to create custom providers for your own use
  • Iterators
    • Normal iterators
    • Iterators based on patterns
    • Object iterators
      • This can be used to easily sort and filter items due to it using objects instead of items to fill the iterator
      • This can also be used in pagination
  • Patterns
  • Pagination
    • Async page switching
  • Scollable
  • Frames
    • Create a smaller piece of a menu with a frame that you can use across multiple menus
  • Option to change inventory properties
  • Option to listen to bukkit inventory and player events NEW
    • Could be used to prevent players from picking up items from the ground while the menu is open for example
  • Multi version support (1.16.5 - 1.21)
  • Async support
    • You can change items in the inventory anytime you want, on any thread you want
  • Option to register your own providers
    • ColorProvider
    • CooldownProvider
    • DefaultItemProvider
    • MenuItemDataProvider
    • PacketListenerProvider