mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-13 03:07:31 +00:00
Only perform flatfile schema migration if the new dir doesn't exist
This commit is contained in:
1 file changed
+1
-1
@@ -123,7 +123,7 @@ public abstract class FlatfileBacking extends AbstractBacking {
|
||||
|
||||
// Perform schema migration
|
||||
File oldData = new File(pluginDir, "data");
|
||||
if (oldData.exists()) {
|
||||
if (!data.exists() && oldData.exists()) {
|
||||
plugin.getLog().severe("===== Legacy Schema Migration =====");
|
||||
plugin.getLog().severe("Starting migration from legacy schema. This could take a while....");
|
||||
plugin.getLog().severe("Please do not stop your server while the migration takes place.");
|
||||
|
||||
Reference in new issue
Block a user