FileInventories - A library letting people design inventories in files


#1

This is a discussion topic for the Ore project, FileInventories. View the full project on Ore for downloads and more information.


FileInventories

FileInventories lets server owners customize items and inventories added by plugins integrating this library.

For server owners

FileInventories alone is useless, but if you have another plugin supporting it, you will be able to customize its items and inventories.

For Developers

Migrating to FileInventories may require some work, depending on the quantity of inventories and the content of these inventories, but this will let users customize your plugin’s inventories the way they want (with custom lore, displayname, etc…), spending some time to migrate worth it!

There is an example plugin.


If you have a question or a feature request, you can contact me via my Discord Server.

Any bug report must be done on the issue tracker.


#2

Is this like, Inventory Interfaces?
If so, why not extend on top of HuskyUI? It greatly simplifies your inventory code and has methods that do basically everything you could want to do with your inventories.


#3

I’m not good at explainations, but basically if a plugin hooks into FileInventories by translating their inventories into JSON files, server owners will be able to change those inventories as they wish with items provided by the developer, and even add custom items (but these items they will do nothing on their own)


#4

A new version has been released for FileInventories, it is available for download here.


[+] Support for enchantments, lore and all " hide_* " properties remaining.


#5

A new version has been released for FileInventories, it is available for download here.


[Fix] NPE when clicking inside a non-custom inventory managed by the plugin (Woops)


#6

A new version has been released for FileInventories, it is available for download here.


Version 0.2.2

[*] Workaround for a bug where we could not always stack FileItems when they are generated separately.


#7

A new version has been released for FileInventories, it is available for download here.


Release 0.3.0

This version will break items and inventories with inventory interaction listeners

You just need to update the keys according to the list below.

Changes have also been made to the API.

  • openInventory now returns an Optional<Inventory>
  • added offerItem(String, Player)
  • added offerItem(String, Player, Inventory)
  • added middle click support
  • renamed everything from right to secondary and left to primary:
    • on_inv_right_click -> on_inv_secondary_click
    • on_inv_left_click -> on_inv_primary_click
    • added on_inv_middle_click
    • on_right_click -> on_secondary_click
    • on_left_click -> on_primary_click
    • added on_middle_click
    • on_interact_right_click -> on_interact_secondary_click
    • on_interact_left_click -> on_interact_primary_click

#8

A new version has been released for FileInventories, it is available for download here.


Version 0.3.1

+ added color codes support for lore


#9

A new version has been released for FileInventories, it is available for download here.


Version 0.3.2

* Fix players being kicked when joining if they have file items in their inventory