HenixCurrency
0.9bPowerful currency system with an API that allows integration with other plugins.
HenixCurrency
Currency with a built-in API to allow developers to use a currency system across all their network. This Currency System caches all the data and only writes to the database when needed.
Config file
The config file contains certain parameters that must be explained for those that are not entirely sure about what they mean. The String Storage.Type can take any of the three storage types (MongoDB, MySQL, or YML).
MongoDB:
- If you want to connect to mongo you'll have to provide an URI (more info here https://bit.ly/2dPu67Q ).
- A database name is also required, even if you have already invoked it on the URI.
MySQL:
- All the field must be provided for the connection to be established.
- The properties string, by default, contains recommended settings, however, if you need to perform any changes on it just follow the same syntax: "property=value;property2=value2".
YML:
- Flat File storage does not need much configuration besides the name of the yml file if you wish to have a different one.
If a connection to a database fails, YML will be set as the StorageType for that instance.
API Usage
Using this plugin's API is not hard at all. The method to invoke the API is:
CurrencyAPI currencyAPI = Currency.getCurrencyAPI();
Then the usable methods are:
- look(UUID uuid): Returns the player's current points.
- take(UUID uuid): Takes away points from a player. Negative values are possible, so please check before doing a transaction.
- add(UUID uuid): Adds points to a player.
Installation
1.Download plugin
2. Start your server.
3. Stop the server and configure all the values
4. Start the server and get up and running!
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta