diff --git a/src/main/java/com/linyuanlin/minecraft/App.java b/src/main/java/com/linyuanlin/minecraft/App.java index 7dd46c5..097b665 100644 --- a/src/main/java/com/linyuanlin/minecraft/App.java +++ b/src/main/java/com/linyuanlin/minecraft/App.java @@ -27,6 +27,7 @@ public class App extends JavaPlugin implements Listener { public HashMap allPlayers = new HashMap<>(); + public WorldManager worldManager = new WorldManager(); public void downloadAllUserData() throws Exception { for (Player p : Bukkit.getOnlinePlayers()) { @@ -45,6 +46,8 @@ public void onEnable() { e.printStackTrace(); } + worldManager.loadWorlds(); + getLogger().info("Main system enabled"); } @@ -200,7 +203,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String cmdlable, Str TextComponent msg = new TextComponent("隊伍成員:" + teamMemberNameString); p1.spigot().sendMessage(msg); } - break; + break; default: break; }