Releases: XZot1K/DisplayShopsAPI
Releases · XZot1K/DisplayShopsAPI
DisplayShopsAPI 1.1.2
This build is created to be used with 1.5.4 (Build 2) and above.
- Added the "canEdit" check method to the "Shop" object interface.
- Added the "getCurrencyBalance" method to the "Manager" interface.
- Fixed the "DisplayShopsAPI" interface as it was set as package private.
DisplayShopsAPI 1.1.1
This release is intended for the use of the DisplayShops 1.5.3 release.
- Both transaction menu related methods in the Manager interface now have a player parameter.
- Added the "getShopLimit" method to the Manager interface.
- Added the "ShopVisitEvent" event which now fires when a player uses the shop visit command.
- Added the SerializeUtil interface and some new methods within it for a new form of item serialization.
- Removed bbm (base-block-material) permission-related methods which are no longer used.
DisplayShopsAPI 1.1
This is intended for the official latest version of DisplayShops (1.5.2)
- Removed the cleanup task methods.
DisplayShopsAPI 1.0.9
This API version is made for 1.5.2 (Build 5) and above.
This version skipped to 1.0.9 due to 1.0.8 being an early release on the discord and unstable.
- Added the "getMaxStock" method to the Manager interface. This new method takes a shop object and uses admin bypasses alongside owner permissions to determine the shop's maximum stock.
- Added the "isPrismaInstalled" method to the DisplayShopsAPI interface to allow a simple way for developers to check if needed.
- Added some new clean-up task id methods to the DisplayShopsAPI interface.
- The DataPack interface has had its ChatInteractionId methods swapped to ChatInteractionType and returns an enumeration value instead of a String. In addition to this, all references to these methods were changed as well. Based on timings and micro-optimization, this increases performance by 7% in terms of chat interaction due to loops that were used to evaluate each string.
DisplayShopsAPI 1.0.7
This version of the API is built for DisplayShops 1.5.2
- Added the "isPrismaInstalled" method to the DisplayShopsAPI interface to allow a simple way for developers to check if needed.
DisplayShopsAPI 1.0.6
This API version will only work on the latest DisplayShops 1.5.1 build (For Release)
- Added the "returnBalance" method to the Shop interface.
DisplayShopsAPI 1.0.5
This API will only work with versions 1.5.1 on Spigot or 1.5.1 dev. (Build 15+)
- Added the “getAssistants” method to the Shop interface.
- Added the “getMaterialMinPrice” method to the Manager interface.
- Implemented the "killCurrentShopPacket" method in the DisplayShopsAPI interface to allow more control over visual updates when changing a shop's data that needs to affect the shop's appearance at the moment.
DisplayShopsAPI 1.0.4
This version is built against DisplayShops 1.5.1
- Implemented the “getLastBuyTimeStamp” and “getLastSellTimeStamp” in the Shop interface for the new dynamic price changing system. In addition, their setters were implemented as well.
- Implemented the "isReadyForDynamicReset" method inside the Shop interface. This method will be used for date comparison using timestamps for both buy and sell transactions if "dynamic price changing" is enabled for the shop.
- In addition to the removal of “syncBaseBlocks”, this also removed the task id getters and setters alongside the chunk coords map.
- Added the “isPaperSpigot”, "getLoggingFile", and "writeToLog" methods to the main class for easy determination for developers.
- The "buildShopEditMenu" method found in the Manager interface now returns an Inventory object alongside requires a Player parameter.
- Removed access to all tasks aside from the ID values. These are more internal and intended to be protected. Methods required to modify things directly in these tasks can be found in the Main class (DisplayShopsAPI or DisplayShops depending on if the API JAR is used as the dependency).
- The “getBaseMaterial” method found in the API’s Manager interface has been swapped to return a String instead of the Material type. This allows a single line of information containing :.
- The “getInitialBaseBlockMaterial” and “setInitialBaseBlockMaterial” were completely replaced with the “getStoredBaseBlockMaterial” and “setStoredBaseBlockMaterial" methods.
- The "getStoredBalance" and "setStoredBalance" methods were implemented to support the new currency handling system.
- Removed the "getPhysicalCurrencyStock" and "setPhysicalCurrencyStock" methods from the Shop interface due to the currency handling changes.
- Removed the “syncBaseBlocks” method from the main class. This method was synchronous and doesn’t handle anything but set the stored materials to shops that have no base block material.
- Removed many player-data related methods such as the chat interaction map, chat tasks, cooldowns, etc. from the Manager interface. Instead, each player is now given a DataPack object which stores this information and load/unloads based on online status.
DisplayShops 1.0.2
- Implemented Ray Tracing methods.
- Removed the "stopInTracks" method from the EconomyCallEvent due to complexion.
- Some other minor adjustments (comments and such).
DisplayShopsAPI 1.0.1
This update adds support for the new systems including Ray Tracing and implements all exceptions DisplayShops can throw.