![Orderium [Order System]](/_next/image?url=%2Fapi%2Fproxy-image%3Furl%3Dhttps%253A%252F%252Fcdn.modrinth.com%252Fdata%252FEH2l9h8i%252Fb8588f4efad9cc563b50d8568cb3c6ee3629a336_96.webp&w=256&q=75)
Orderium [Order System]
Add an order system and let players to create and deliver orders from each others! Inspired by DonutSMP.
Оцените первым
4.9K
23
Список изменений
Optimizations
This version mainly improves the performance impact of the plugin to servers.
The issue
- A bottleneck in Orderium was that strings are constantly getting deserialized to MiniMessage text components. At first, this does not sound very resource-intensive, just deserializing a string. However, it starts to create a performance impact when this happens more often. Every page, every item, every lore lines, custom name, all of them are deserialized when you execute
/ordercommand. - The plugin makes
Bukkit.getOfflinePlayer(UUID)calls for all active orders whenever a player uses search. This method tends to be resource-intensive.
The solution
For the first problem, I used 2 methods to solve it:
- Lazy loading: whenever a player executes
/order, it generates all the pages, even if the player only accesses the first or second page. This version no longer generates all the pages, it only does when the player moves to the next page, minimizing the amount of inventories need to be created as well asItemStacks. - Caching: The orders used to create a new
ItemStackthen deserialize the lore lines with placeholders. Now, it only creates theItemStackevery time the placeholder values change or the config reloads.
For the second problem, I also simply cache OfflinePlayer and only call Bukkit.getOfflinePlayer(UUID) once when the server starts for each order.
You can see that a lot of changes have been made. Therefore, bugs might appear in this version, because optimizing is always scary. If you found any, feel free to report an issue on the Github repository :)
Файлы
Orderium-2.2.0.jar(648.24 KiB)
ОсновнойМетаданные
Канал релиза
Beta
Номер версии
2.2.0
Загрузчики
FoliaPaperPurpur
Версии игры
1.21.7–26.2
Загрузок
351
Дата публикации
31.07.2026
