This update will require a "config.yml" reset. By default, it will automatically backup your "config.yml" on startup.
Welcome to 1.5! This update unleashes quite a bit, but the key change is Ray Tracing. Ray Tracing is a concept used that allows DisplayShops to asynchronously create small rays for each player to obtain whatever that player is looking at. In addition, shops now have bounding boxes that allow DisplayShops to also detect when the player is looking directly at the holograms!
This update was very tough due to a partial re-code in many areas to achieve exactly what I was aiming to create, so be sure to show some love!
Feeling generous? Hook a developer up with some coffee to keep the updates pumping here!
⍟ Changes ⍟
- A brand new API. You guys can now use the official API here!
- The configuration file “config.yml” has been completely revamped. This will require a reset to this particular file. The plugin will automatically backup the file and provide the new one!
- The plugin now only supports Spigot and all forks of Spigot. Due to complexity, CraftBukkit/Bukkit support was dropped to provide more efficient methods and allow the plugin to require fewer changes when new MC versions come along.
- DisplayShops now uses the concept of Ray Tracing to enhance its radial analysis for detecting if a player is looking at a shop. The full sequence is also now completely Async.
- The transaction menu’s buy and sell buttons now become blocked when any of the following cases are met:
- The buy/sell price is less than zero.
- The stock is less than the shop item’s stack amount multiplied by the unit count selected by the player (Avoids admin shops with unlimited stock).
- The buy counter added to the selected unit count is greater than or equal to the buy/sell limit (If the limit is zero, this is avoided).
- When selling, the shop is at max stock or would exceed max stock.
- The dynamic price counter no longer increases without the feature enabled.
- Added two new actions to the “price-change-item” found in the “shop-edit-menu” in the “menus.yml”. These actions are:
- Shift + Left-Click - Toggles dynamic price changing.
- Shift + Right-Click - Resets the dynamic price changing counter.
- When the shop item is set and the item has enchantments attached to it, the shop’s description will now be set to display all enchantments found as a little preview. This feature can be toggle using the new “enchantment-description-set” found in the “config.yml”
- Shop editing features that don’t require chat interaction now close the GUI on transaction fail.
- Settings shop’s value (buy price, sell price, description, etc.) no longer allows the player to use the same value that is already set. For example, setting the shop’s buy price to 500 when it is already set to 500.
⍟ Bug Fixes ⍟
- Resolved some issues with producer detection for transaction success.
- Resolved a transaction issue involving buying/selling not following the dedicated event correctly.