💾Saved Item (Item Manager)
Last updated
Last updated
You can create your own item at items
folder of plugin, just create a yml file and then follow in this file. The file name is the item ID.
You can use command /shop saveitem <saveItemID> <saveItemMethod>
command to save your hold item. There are 2 methods to save item.
Bukkit
If you are using Spigot version of UltimateShop: Use BukkitAPI's method to save item. The method only support saving vanilla data and persistent data stored through BukkitAPI, and other custom NBT data from other plugins will not be saved.
If you are using Paper version of UltimateShop: Use PaperAPI's method to save item, this new method can 100% save item data, no data will lose. (Paper and 1.15+ server only)
ItemFormat: will parse item into .
An example for item config file that use Bukkit save item method with Paper version of UltimateShop:
An example for item config file that use ItemFormat save item method with Paper version of UltimateShop:
Saved items will be cached in memory continuously after loading to avoid repeatedly reading the saved item file, which may consume too much server performance. However, the cost is that if you have too many saved items, it may correspondingly consume more memory.
You can use saved item in . In ItemFormat, there is a option called material
, by default, you need type vanilla item ID there, but, you can also use saved item id to let plugin directly get the saved item instead of generate a whole new item with that type.