Code (Text):
interface:
enabled: false
type: 'mysql'
datatype: 'integer'
mysql:
url: 'localhost'
port: 3306
database: 'test'
user: 'root'
password: ''
table:
name: 'CoinSystem'
columns:
uuid: 'PlayerUUID'
coins: 'Coins'
file:
path: 'plugins/Essentials/userdata'
file: '%uuid%.yml'
item: 'money'
command:
give: 'eco give %uuid% %coins%'
take: 'eco take %uuid% %coins%'
You must already have a coin system to be able to use the coin trade function. The player's coins must be stored either in a MySQl database or in a YAML file. Then it is possible to access the coins with a customisable interface.
MySQl:
-
table.name The table name where the coins are stored
-
table.columns.uuid The column name of player uuid
-
table.columns.coins The column name of coins
File:
-
path The path to the coin database file
-
file The name of the file
-
item The YAML item path
-
command.give The give coins command
-
command.take The take coins command
Data types:
-
int Your coins are stored ad integers
-
double Your coins are stored as doubles