mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Fixing convert command feedback message
This commit is contained in:
parent
c8a811ca6e
commit
1711056844
@ -22,17 +22,13 @@ public class convert implements Cmd {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, Jobs::convertDatabase);
|
String from = Jobs.getDBManager().getDbType() == DataBaseType.SqLite ? "SQLite" : "MySQL";
|
||||||
|
String to = Jobs.getDBManager().getDbType() == DataBaseType.SqLite ? "MySQL" : "SQLite";
|
||||||
|
|
||||||
String from = "MySQL";
|
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||||
String to = "SQLite";
|
Jobs.convertDatabase();
|
||||||
|
Jobs.consoleMsg("&eDatabase was converted from &2" + from + " &eto &2" + to + "&e!");
|
||||||
if (Jobs.getDBManager().getDbType() != DataBaseType.SqLite) {
|
});
|
||||||
from = "SQLite";
|
|
||||||
to = "MySQL";
|
|
||||||
}
|
|
||||||
|
|
||||||
Jobs.consoleMsg("&eData base was converted from &2" + from + " &eto &2" + to + "&e!");
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user