ShopUI
ShopUI is a form-based item shop plugin for PowerNukkitX. Players can browse configurable categories, select an item and quantity, review the total price, and buy or sell items using their economy balance.
Requirements
- Java 21 or higher
- LlamaEconomy
ShopUI will load without LlamaEconomy because it is declared as a soft dependency, but the shop cannot process transactions until an economy provider is available.
Installation
- Download ShopUI
- Install and configure LlamaEconomy.
- Copy
ShopUI.jarinto the server'spluginsdirectory. - Start the server once to generate the default configuration.
- Edit
plugins/ShopUI/config.ymlto configure the shop. - Restart the server after changing the configuration.
Usage
/shopopens the purchase menu (items with an enabledbuyprice)./sellopens the sale menu (items with an enabledsellprice)./sell handsells items from the held stack only./sell allsells all saleable items in the players inventory.
Direct sales use the package size configured as amount and the sell price per package. For example, with 13 items and amount: 2, 12 are sold and 1 remains. Unsaleable items and incomplete packages stay in the inventory. max-sale-steps only limits the menu slider, not these commands. If multiple entries match the same item, they are processed in configuration order using the remaining items, so no item is sold twice.
Both commands use the same configured categories and show only categories with available items for their action. Select a category, item and quantity, then confirm the transaction. Both commands can only be used by a player.
Existing server configurations are not overwritten on update. Add sell prices to plugins/ShopUI/config.yml to enable sales, then restart the server.