This update costed me alot of work and will also mark the first release version of PlayerMarketGUI, I hope you enjoy this update. Sadly this makes the plugin automatically override your data as it required me to recode alot, which is the first and last time your data is lost. If any issues are found or if you have suggestions to improve the plugin even more, please reach out to our discord support at https://discord.gpplugins.com/ I also took the time to document the whole plugin, or atleast what is worth it as multiple people already asked for this: https://wiki.gpplugins.com/playermarketgui
Added:
Added hologram support from DecentHolograms and FancyHolograms
Auction house and player shop listings can now be sorted by Price, Seller Name, Item Name and Creation Date where each sort mode can be changed from ascending to descending seperatly
Sort options will also be remembered by player, making sure the last chosen option isn't lost when they next use the Auction House for example
Player GUI shops can now have color codes in title/description
Config option 'partial-purchases' to toggle auction house quantity changes for buy now listings
Default is now disabled which aligns better with real life auctions
Changed the way player shop GUI listings can be restocked
Listings can now be restocked up to a configurable limit of items
Restock can be disabled entirely now (default is enabled with max 9 stacks)
Reworked GUI shop manage screen, adding option to delete player GUI shops
Added missing limit for max player GUI shops
Config option to set default delivery duration and added permission to override it
Left clicking a chest shop as the owner will now bring up a GUI
Chest shops will now also count stats like items sold and profit made
It is now possible to shift left click a chest with a item from hand to create a chest shop
Added '/ah list <price>' sub command which directly lists the a item on the auction house
Added '/shops list <price>' sub command which directly lists the a item in a player shop
Added/edited over 50+ messages in the lang.yml
Changed:
Refined default market limits
Relocate libs inside sub directory
/listitem or /list command will now open sell GUI instead of listing directly to Auction House
Added /ah list & /playershops list commands instead which allows directly listing a item from hand into shop
Much better/more detailed error logging on over 200+ database calls
Chest shop locations will now be updated on load
Better/more efficient temp cache handling of chest shops
The loading items are now also NETHER_STARS instead of paper
Improved code efficiency on browsing paginated inventory's
Rewritten database structure for a more streamlined/efficient way of storing data
Using /pm reload will now also reload most config options without a server restart
Listing/selling a new item via the GUI will now properly allow you to click the back button even if no item hasn't been selected yet
Listing/selling a new item will now only load the barrier inside the GUI which confuses the player less
The list item GUI will now allow to list items to shops directly aswell by selecting a shop first, instead of needing to manage it
Listing/selling a new item now has a min price based on the economy provider being used
Opening a chest shop as a owner will now open it normally instead of updating the hologram
Fixed:
Restocking a Player Shop via the GUI would allow you to put any item from the same type in the slot and it still counting as the same custom item
Accepting a delivery request of more then the item's stacksize at once would throw a error
Listing/selling a new item via the GUI wouldn't allow you to click the back button when it goes into select item mode
Fixed chest shop holograms being off centered for double chests
This update requires you to recreate or manually copy all changes(complete recreation recommended) of the lang.yml as I've re-written, added and removed alot of messages/placeholders for better clarity
More UI/General improvements after user feedback:
Changed restock action in manage shop listings GUI to Q(drop) key
Fixes not being able to middle click to restock in survival mode
Fixed wrong translations being used in the create bidding and bid GUI for select amount buttons
Selling a item or creating a chest shop via the GUI now requires the player to select a item from their inventory instead of holding the item in their hand
Prevents the player from having to close the GUI if they do not have the correct item in their hands
Multiple page GUI's won't show the next page button anymore if there is no next page to go to
Auction house items will now also show the original name/lore if any
Listings will now also show the seller and expiration date
Removed redundant cancel buttons from Buy Amount/Place Bid and Deliver Amount GUI
Merged Set Max Qty buttons into info item within Buy Amount/Place Bid and Deliver Amount GUI
Merged page info and Switch Listings mode buttons into one item in My Listings GUI
The info items are now Nether Stars instead of Papers
Listed items inside the Auction House, Player Shops and Delivery GUI will now also show the expiration date in their lore
Listed items now have their original name/lore displayed in the GUI if any instead of being overriden by info lore
Every GUI now has fill items
Clicking the 'Create Chest Shop' button now first asks to select a chest before configuring the item's sell price
Some more general improvements like better lore descriptions on items
Premium:
Merged Price Suggestions info(data based on sales history) and Current price info into one item in List Item and List Shop Item GUI
Merged Match Asking button and Offer info into one item in Make Ofer GUI
Merged Bid Minimum button and Bid info into one item in Place Bid GUI
Moved Create Bidding Auction and Make Offer button to the left so the buttons aren't to close to each other
PS: I might've forgotten to write some changes in this changelog as the list became quite long
Correctly handle player inventory clicks while inside a GUI, fixing being able to place items in slots
Rewrote menu handler to now use the optimized paper methods if available
The inventory will now close automatically if chat input is asked from the player
Moved the 'Create Chest Shop' button to the manage players shops GUI instead, preventing you to require to first create a GUI player shop to create a chest shop
The back and close inventory buttons will now always appear in the same slot
The restock shops GUI now fills non interactable slots with fill items
The 'My Listings' option in the main GUI now uses a player head with the 'skullowner' option(recreate the menus.yml or manually update it to see changes)
Updated some messages in the default lang.yml(recreate or manually copy the changes)