-
-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Description
There's been some discussion recently about refactoring the Economy API. The following changes have been proposed:
- Combine VirtualAccount and UniqueAccount into one. All accounts would have:
- A unique UUIDs (not the same as a player's UUID).
- A list of UUIDs of owners of the account. These would usually be player UUIDS, but could also be provider-supplied UUIDS with provider-defined semantics
- An optional 'friendly name'
Another idea is to leave the system as-is, but make the following changes:
- A new AccountHolder interface will be introduced. This would represent a player or some-plugin defined account holder (e.g. a GriefPrevention town).
- Virtual accounts now have a list of owning AccountHolder UUIDs
Additionally, we're planning on greatly expanding EconomyTransactionEvent. Instead of being read-only, the event should be able to be modified by plugins. This could take the form of adding on a 'tax', or even completely changing the transaction amount.
We'd welcome feedback from anyone interested in the Economy API - especially economy plugin developers such as @Flibio and @Erigitic
Reactions are currently unavailable