Get started
Thank you for purchasing my CoinsAPI.
ColorCodes are always defined with a & character. A list of possible ColorColdes can be found here. Please use the CHAT CODE column from the displayed table and replace the § character with the & character.
If you have downloaded the CoinsAPI and started the server, a folder named CoinsAPI should now have been created in your plugins folder. Now open this folder and edit the config.yml
.
Enter license
Add your private license in the config.yml
. If you don't have one yet, open a support ticket on my discord server.
Why do I need a private license? The answer is here
Database
Set the database type in config.yml
.
MySQL
Set database: "mysql"
to store your data in a MySQL
database. You can access the data across servers. To connect to MySQL database open the file mysql.yml
and enter your MySQL data.
SQL
Set database: "sql"
to save your data locally on the server. This data can then only be accessed by this one server. To do this, the plugin creates a folder called database
in the plugins folder. The database file database.db
is created in this folder.
File System
There are 2 different file systems. These are explained below.
single
The single
file system simply means that all messages of all languages are contained in one file. Here is an example from the CoinsAPI:
Default language
With LanguageAPI
If you have my LanguageAPI for Spigot, you can omit the item defaultLanguage: "english"
, as the language of the player is managed via this. Just make sure that you have set all messages in the languages that are set in the config.yml
of the CoinsAPI.
single-filesystem
For example, if you support the languages German, English and Spanish, in this case you have to copy the messages to e.g. English and paste it at the end of the file and translate each individual language.
multi-filesystem
Just as with the single file system, you only need to copy the english.yml
file, for example, and change it to the name of the language. In the example with the Spanish language in español.yml
. (If you have set the language as español in the config.yml
of the LanguageAPI)
Otherwise take another look at the language setting in the LanguageAPI. Click here
Without LanguageAPI
However, if you have not purchased my LanguageAPI, you can set the default language of the CoinsAPI under defaultLanguage: "english"
. This means that every player will receive all messages from the plugin in this language.
payCommand
If this setting is set to true
, players can send each other their money.
Prefix
The prefix is always set by the CoinsAPI before each message. You can change the prefix by changing the line prefix: "&7[&fCoin&6System&7]&r"
.
Currency
You can set the name of the currency on your server under the following points.
resetSize
Here you can set the value to which the player's money should be set when an admin resets it.
coinsOnFirstJoin
Here you set how high the initial amount of a player should be when he joins your network for the first time.
Default configuration
Command
Syntax
/coins
--/--
See your account balance
/coins help
--/--
Show all possible commands
/coins see <Spieler>
coinsapi.seeother
See the account balance of another player
/coins add <player> <amount>
coinsapi.add
Add a certain amount to a player's account
/coins remove <player> <amount>
coinsapi.remove
Remove a certain amount from a player's account
/coins set <player> <amount>
coinsapi.set
Set a player's account balance to a certain amount
/coins reset <player>
coinsapi.reset
/coins reset <player> <amount>
coinsapi.reset
Reset a player's account balance to a certain value
/pay <player> <amount>
coinsapi.pay
/coins pay <player> <amount>
coinsapi.pay
Last updated