1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Merge pull request #1338 from DoctaEnkoda/patch-3

Convert Database Async
This commit is contained in:
Zrips 2022-01-13 13:01:09 +02:00 committed by GitHub
commit 94a61fdab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
package com.gamingmesh.jobs.commands.list;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -21,7 +22,7 @@ public class convert implements Cmd {
return true;
}
Jobs.convertDatabase();
Bukkit.getScheduler().runTaskAsynchronously(plugin, Jobs::convertDatabase);
String from = "MySQL";
String to = "SQLite";