GithubHelp home page GithubHelp logo

vinhowe / treasury Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 76 KB

Spigot compatible plugin for managing currency circulation.

Kotlin 100.00%
spigot-plugin spigot economy-plugin minecraft-server minecraft-plugin paper minecraft kotlin vault-api vault-plugins

treasury's Introduction

Treasury

Spigot plugin for limiting and monitoring circulation of currency in a Vault economy. Allows players to exchange gold ingots for currency.

Tested with EssentialsX and Vault on a 1.16.4 Paper build.

Check out my brother's plugin, EverGlow.

Why gold?

I may make it possible to exchange other items for currency in the future, but I chose gold because:

  • It's rare enough. It is relatively difficult to find, but not so difficult that most players don't have it.
  • It's stable(ish). Gold ore can't be multiplied with fortune enchantments like diamond, making its value more stable.
    • Yes, there are other ways to get gold. If this is an issue for you, you may want to find ways to disable them or track which gold came from ore. This hasn't been a problem on my server yet, but I may end up adding configurable restrictions to this end.
  • It isn't used often. In my experience, the number of ways over time that gold is useful in survival play are few enough that it accumulates faster than it can be used. People seem to be willing to part with gold in exchange for something more versatile. Diamonds are a lot more useful, which makes it harder to justify exchanging them especially when trying to organically bootstrap an economy.

Usage

Introduce currency into circulation:

/circ[ulation] add <amount>

View total amount of currency in circulation and amount available for exchange with gold:

/circ[ulation]

Exchange gold ingots in inventory for currency (this must be executed by an in-game player):

/exchange <amount>

where amount is the number of ingots to exchange.

Note that actual number of ingots exchanged may be less than amount if:

  • amount is higher than the number of ingots in your inventory.
  • There is insufficient currency available to exchange.
  • There is a bug in my code--please file an issue.

Installation

Download the latest release.

treasury's People

Contributors

gabehowe avatar vinhowe avatar

Watchers

 avatar

Forkers

gabehowe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.