-
Notifications
You must be signed in to change notification settings - Fork 1
API
RGG200 edited this page May 13, 2024
·
45 revisions
- I wanted to make this plugin easy to use and easy to make extensions for developers. So i made this API for it. Please leave feedback if you decide to use this API so I can make it better for you and everyone :) !
<dependency> <groupId>com.github.RGG200</groupId> <artefactId>AsceciaCurrencies</artefactId> <version>main-SNAPSHOT</version>
GroupId: com.github.RGG200 ArtefactId: AsceciaCurrencies Version: main-SNAPSHOT
- then when making a class that uses the API write this line of code:
import me.rgn.asceciacurrencies.CurrenciesAPI.*;
- Finally write this line of code:
CurrenciesAPI (insert name here) = new CurrenciesAPI();
- and you should be go to go !
- Disclamer: put (CurrenciesAPI/whatever the name of your instance is). for these methods like this
cAPI.currency.create(p, "oku");
- the plugin has 3 custom configuration files currenciesConfig, playersConfig and languageConfig. to access them just put
cAPI.configname.
for exemple just useconfigname.setup()
whenever you want to access one. - for more information about config files and how to use them go to This link and do additionnal research.
- Adds a certain amount of currency to a player
- removes a certain amount of currency to a player
- Creates a currency, name is the name of the currency.
- Deletes a currency without asking.
- Deletes a currency if you are the author.
- Deposits an amount of ores that the player's holding.
- Creates a certain amount of currency.
- Transfers money from player to player
- Target is the player receiving money.
- Transfers money from player to player even if target is offline
- Target is the player receiving money.
- Removes an amount of currency from the player
- Renames a currency
- Gives an amount of currency to the player.
- Shows info to the player about a currency.
- Shows a list of all currencies available.
- Withdraws the amount specified times the power of the currency and give ores to the player accordingly.
- Shows the balance of the player with every currency.
- Shows the balance of the player with every currency.
- Shows the balance of the player with every currency.
- sets an ore's price.
- sets an ore's mint value.
- sets language.
- Adds team member to currency if author
- Adds team member to currency if author
- kicks team member from currency if author
- Allows author to set a player's permissions within the author's currency
- Allows player to invite others
- Allows player to leave his team
- Allows to see the player's permission in a team
- Thanks for using Ascecia Currencies ! Please leave feedback to help me make the plugin better !
- Hello there !