Create a new command
/inv sync <flatfile/mysql> <mysql/flatfile>
You can synchronize between the databases with this command.
It won't delete the existing data, just add the rest from the other database.
In both cases the config.yml "database-type" section must be mysql. And the plugin must connect to the mysql server.
Of course, all this happnes in asnyc.
You have to
complement the
language.yml file with these lines:
Code (YAML):
no-mysql-connection: "&cThere is no mysql connection. You should check the config file." sync-mysql-to-flatfile: "&aYou successfully synchronized the mysql database to the flatfile." sync-flatfile-to-mysql: "&aYou successfully synchronized the flatfile database to the mysql."