Migrating from file to database #
- Open
config.yml
in the same directory asbalance.yml
. It should look something like this:
exchangeRate: 10 # Coins/diamond
# Database
database:
enabled: false
type: mysql
host: localhost
port: 3306
database: minecraft_db
username: user
password: pass
# Shops
shop:
emptyShopOwnerMessage: true
emptyShopListJoin: true
# Players
player:
welcomeMessage: true
op:
updateMessage: true
- Replace the database configuration with your own. But keep enabled as false.
- Start your server and run the command
/quickeconomy migrate
. Note: You need the permissionquickeconomy.migrate
to use this command as a player. - Check the console for errors.
Enabling database on a new server #
If you want to use a database as the storage method for QuickEconomy on a server which hasn’t used the plugin before, all you have to do is follow steps 2 and 3 from the section above but set enabled: true
.