Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary Nation Banks #167

Open
cicetil opened this issue Apr 7, 2022 · 1 comment
Open

Secondary Nation Banks #167

cicetil opened this issue Apr 7, 2022 · 1 comment
Assignees

Comments

@cicetil
Copy link
Contributor

cicetil commented Apr 7, 2022

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
Copy link
Contributor Author

cicetil commented Apr 8, 2022

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

@LJNIC LJNIC self-assigned this Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants