-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented the "killCurrentShopPacket" method in the DisplayShopsA…
…PI interface to allow more control over visual updates when changing a shops data that needs to effect to the shops appearance in the moment. * 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 the Shop interface. This method will be used for date comparison using time stamps 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 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 <material>:<durability>. * 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 method 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. Signed-off-by: BuildTools <[email protected]>
- Loading branch information
BuildTools
committed
May 18, 2020
1 parent
2b03648
commit ef783ba
Showing
7 changed files
with
284 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
## API-VERSION 1.0.2 ## | ||
## API-VERSION 1.0.4 ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.