Sueta

NPCShopHPX

1.1.2-SNAPSHOT

Hypixel-style NPC shop with buyback and quantity-selection menus

·Plugin
  1. 1.1.2-SNAPSHOTlatestv1.1.2 – Custom Items + Language Cleanup + Quantity FixFeb 5, 2026
    New: Custom Items system · Added ability to save and sell custom items with full meta: name, lore, enchantments, CustomModelData, attributes, potion/book meta, and durability/damage. · New admin command: · /npcshop additem <id> – saves the item from your hand to config · /npcshop giveitem <id> [amount] [player] – gives a saved custom item · /npcshop list – lists saved custom items · New config section: custom-items: storing serialized ItemStacks. Improved: Item click detection (safer) · Shop items now use PersistentDataContainer (PDC) to identify clicked items (stable and reliable, no name/lore comparisons). Fixed: Quantity menu accidental buying · Fixed a bug where clicking any slot in the quantity menu could buy 1 item. · Now buying is only possible when clicking the dedicated quantity slots (1/5/10/32/64). Improved: Language consistency · Removed mixed-language output by moving npcshop command messages into language files (en/lt). · Cleaner output: no more half English / half Lithuanian. Improved: GUI glass filler · Glass fillers no longer use display names that create unnecessary meta. · Tooltip hiding is used where supported to keep menus cleaner.
    3 downloads
  2. 1.0.1-SNAPSHOTv1.0.1 – Changes: new quantity selection system & simplified codeJan 23, 2025
    · New Quantity Selection: Uses a quantityBySlot map so players simply click the corresponding slot for 1, 5, 10, 32, or 64 items. · Removed Language If-Else: All strings like cost, coins, and click_to_trade now come from the language files, resulting in cleaner code. · “Stock” Removed: The item lore display is streamlined; the “Remaining” logic was cut out as it was overly complicated. · Minor Enhancements: Improved logging, removed unused code parts, and better behavior in handleInventoryClose when toggling pages or switching to the quantity menu. Thank you for using our plugin! If you find any issues or have suggestions, please let us know in the comments.
    177 downloads
  3. 1.0-SNAPSHOT1.0-SNAPSHOT - Post Resource Update: Config & Lore EnhancementsJan 15, 2025
    Below is a summary of the updates that have been made compared to the previous version: · Config.yml File Improvements · The configuration file (config.yml) has been updated and improved. · Now the default language is set to English. · Detailed comments have been added so that each configuration section is explained. · The documentation clearly emphasizes that item names must be provided in all capital letters (matching the Spigot/Bukkit Material names) to ensure that all design properties (like colors and formatting) are preserved. · Shop Lore and DisplayName Updates · The code now saves the original ItemMeta (including display names and lore) when the shop menu is opened. · This ensures that when players change pages or return from the quantity menu, the original item lore and display formatting are restored correctly. · The updates include improvements to the mechanism that updates the lore (for example, showing the item’s name followed by the quantity and selling options), which provides a more consistent user experience. · Quantity Menu Enhancements · The quantity menu has been enhanced so that when it is opened or when the player navigates back to the shop menu, the original item meta is either restored or re-saved. · This update ensures that changes (such as quantity and the associated lore) are properly applied and updated across different menus. · Future Enhancements (Planned) · Future updates are planned for faster and more dynamic lore updates in the shop. · Planned changes include the ability to quickly change colors and other design details in the lore as well as further improvements to the quantity menu lore. · Additional Notes for Users · A notification message ("Post Resource Update") is sent to the player indicating that a resource update has been applied. · All messages shown to the user are now in English. · The plugin uses a rich text editor (integrated via SpigotMC) for better formatting of messages. These updates aim to improve both the configuration experience and the in-game user interface by ensuring that all text, item names, and lore are consistent, properly formatted, and easy to update in the future.
    39 downloads
  4. 0.5Jan 12, 2025
    69 downloads

Similar projects

Plugin →