move migrate remind msg

This commit is contained in:
Xanadu13
2024-03-18 16:29:37 +08:00
parent 18decbe068
commit 7109fa57cc
2 changed files with 7 additions and 5 deletions
@@ -106,6 +106,7 @@ public final class EnderDragon extends JavaPlugin {
finish = true;
}
public static void reloadAll(){
ItemManager.getLegacy().set(false);
WorldManager.reload();
GlowManager.reload();
EnderDragon.getInstance().loadFiles();
@@ -128,6 +129,12 @@ public final class EnderDragon extends JavaPlugin {
this.cancel();
DragonManager.reload();
GuiManager.loadGui();
if (ItemManager.getLegacy().get()){
Lang.error("I'm sorry that data_type 'nbt' and 'advanced' probably will be disabled in 1.20.5+");
Lang.error("It is recommended to migrate item configuration to bukkit format for compatibility.");
Lang.error("You can use /ed migrate to generate new config.");
}
runnable.runTaskTimer(plugin,0,1);
}
}.runTaskTimer(plugin, 1, 5);
@@ -43,11 +43,6 @@ public class RewardManager {
}
}
}
if (ItemManager.isLegacy()){
Lang.error("I'm sorry that data_type 'nbt' and 'advanced' probably will be disabled in 1.20.5+");
Lang.error("It is recommended to migrate item configuration to bukkit format for compatibility.");
Lang.error("You can use /ed migrate to generate new config.");
}
}
public static void addItem(String key,Reward reward){
addItem(key,reward.getItem(),reward.getChance());