Atherys / AtherysTowns

A land-management plugin for the A'therys Horizons server, inspired by Towny
GNU General Public License v3.0
7 stars 6 forks source link

Secondary Nation Banks #167

Open cicetil opened 2 years ago

cicetil commented 2 years ago

In order to facilitate a nation scoring system in a simple way which can also be integrated into Battlegrounds, we can add a secondary bank to Nations. This bank won't be used for any economy functions but only to store a separate currency from the main one. In our case, this bank will hold a "reputation" currency which acts as a point-scoring system. Other plugin functions can then send that specific currency to the nation's secondary bank.

/nation or /nation info will display as the currency's configured singular/plural name, along with the amount. If the amount of currency stored is 0, it shouldn't be displayed.

Config option secondary-currency = "economylite:reputation"

image <currency name>: <amount> will be displayed at the top of this panel.

If battlegrounds is also on the server, it will proceed to deposit into the nation's secondary bank instead of the normal team curreny/point bank.

cicetil commented 2 years ago

Town banks can already support multiple currencies in their bank. We would just need to add a display for the configured secondary currency.