Treasury icon

Treasury -----

[1.7-1.20] A powerful multi-platform library for next-level plugin integrations.




Thank you to HSGamer for contributing this update ( #285). Additionally, thank you to montlikadani and 4drian3d for contributing to #277. Last and certainly not least, thank you to MrIvanPlays for writing most of this update's changes.

This update adds support for MiniPlaceholders, adds the EconomyProvider#findCurrencyByDisplayName API method, fixes some bugs and makes other minor improvements.

Full changelog:

  • Added MiniPlaceholders support (MrIvanPlays, montlikadani, 4drian3d)
  • Added EconomyProvider#findCurrencyByDisplayName API method (MrIvanPlays)
  • Miscellaneous platform detection fixes and improvements (MrIvanPlays, HSGamer)
  • Strip colours out of logging (MrIvanPlays)
  • General improvements to javadocs and code (MrIvanPlays, lokka30)
----------, Jul 14, 2023

Treasury v2.0.0 Changelog

Notice: Downloading Treasury for BungeeCord, Velocity, Sponge, or Minestom instead? See all downloads here.


After many months in the making, we are proud to release Treasury v2!
This is an update which makes brilliant advancements to Treasury as a whole. We've focused most of our efforts into perfecting our APIs, though we have also worked on the general code and documentation (an ongoing effort).

Developers, note that this update is a (very rare) breaking change; please update your Treasury-v1 integrations whenever possible to avoid API incompatibility issues.
Server owners, please do not mix Treasury-v1 plugins with Treasury-v2 plugins as they are unable to talk to each other (different APIs).


To summarise technical details for server owners, we've made several refinements to Treasury's APIs, basically meaning that plugins will have an easier time adopting Treasury and using it to its full potential.



Contributors
Thank you very much to each and every contributor who volunteered their free time to get this update out to you all.
  • montlikadani
  • yannicklamprecht
  • MrNemo64
  • A248
  • and, of course, the maintainers: lokka30, MrIvanPlays, and Jikoo
General Changes
  • Added Sponge platform compatibility
  • Added Minestom platform compatibility
  • Improved documentation

API Changes
  • Removed the whole Subscription concurrency system and moved to Java's own CompletableFuture system.
  • Removed Responses and replaced them with just Exceptions. For performance concerns we also have a TreasuryException which can be used to avoid needless stack traces.
  • Treasury no longer cares about negative balances.
  • Treasury's design has changed slghtly to no longer recommend pointless preconditions prior to the intended action being requested. For a specific example, Treasury's canAfford method has been removed since it is best to just attempt a withdrawal and check if it has failed.
  • Switched a handful of String-based identifier systems with NamespacedKeys to reduce inter-plugin name collisions.
  • Full-scale API cleanup with many small improvements.
  • Removed platform-specific APIs
----------, Jul 2, 2023

Read the update description before updating!
Download this update for other platforms: [BungeeCord], [Velocity]

Contributors
Thanks @A248, @MrIvanPlays, @Jikoo, and @Sliman4 for working on this update.
Thanks to @MrNemo64 and @yannicklamprecht for the code review.

Announcement
Before I list the changes this update, I wish to announce that we are currently working on a major update to Treasury's APIs: Treasury v2. This will be a breaking change, and hopefully the only one we will need to make. We feel this update is necessary, and we understand the implications of breaking existing implementations. It is our hope that this will make the library better in many fronts. If you are interested in learning more, please feel free to ask on the Discord or the GH Discussions.

Changelog
  • Fix handling of futures and exceptions in EconomyProvider (@A248)
  • Use ExecutorService#execute to avoid swallowing exceptions (@A248)
  • Make EventTypeTracker thread-safe + some code cleanup (@A248)
  • Expanded Events API (@MrIvanPlays)
  • Improve PAPI Economy Hook (@MrIvanPlays and @Jikoo)
  • Fixed colored message sending in console in Paper (@MrIvanPlays)
  • Persist expansion between PAPI reloads (@Sliman4)
  • Fix NPE in BalanceCache and BalTop (@Sliman4)
  • Updated maven dependencies
----------, Oct 31, 2022

[Download Bukkit/Spigot JAR] - [Download BungeeCord JAR] - [Download Velocity JAR]

Welcome to a brand new Treasury update! ;)
  • Treasury now runs on BungeeCord and Velocity! (@MrIvanPlays)
    • Economy providers on the proxy are now possible through Treasury!
  • Treasury now has several PlaceholderAPI placeholders which you can use! (@MrIvanPlays, @Jikoo)
    • You can now put top player balance rankings in holograms, etc!
  • Fix "outdated development version" false positive in the update checker (@MrIvanPlays)
  • Added missing @ NotNull annotation (@Esophose)
  • Internal dependency updates

Thank you to everyone who contributed, and thank you to @Nemo_64 for the code review!

Click here to view the code diff.
----------, Mar 30, 2022

Reverted the meta-inf filter from v1.1.0 which caused a startup error ( @MrIvanPlays).

Note: if you missed the update log for v1.1.0, please read it! Important things happened. :)
----------, Feb 17, 2022

Developers, README:
  • This update adds 2 new APIs, and deprecates the EconomyAPIVersion system.
  • If you're a developer, please update accordingly!

Changelog:
  • Added new platform-independent Event API! (@MrIvanPlays)
  • Added new platform-independent Service API! (@MrIvanPlays)
  • Deprecated the EconomyAPIVersion system. Remove it entirely from your economy providers! It will be removed in the near future.
  • Added generalization for the Subscriber so it can be used on multiple APIs (@ysl3000)
  • Enabled the update checker (@MrIvanPlays)
  • Improved javadocs (@MrIvanPlays, @lokka30)
  • Added default method implementation for Account#setNam for PlayerAccounts (@MrIvanPlays)
  • Improved bStats charts (@lokka30)
  • Updated internal Maven dependencies

What's next?
  • We'd like to make Treasury run on BungeeCord and Velocity. Even more platforms will be added in the future! This will make all Treasury APIs work on these platforms.
  • We'd like to add new APIs, for Permissions, Chat, Region / Land Protection, Vanish and more. If you're interested or want to be involved, please see the discussion.

Thank you for using Treasury! Feel free to leave a review if you wish. :)
----------, Feb 17, 2022

Resource Information
Author:
----------
Total Downloads: 2,659
First Release: Jan 26, 2022
Last Update: Jul 14, 2023
Category: ---------------
All-Time Rating:
6 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings