Skip to content

Commit

Permalink
🐛 [world] fixed missing world manager
Browse files Browse the repository at this point in the history
  • Loading branch information
yuaanlin committed Aug 8, 2021
1 parent 4a09a66 commit af9e71f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/linyuanlin/minecraft/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
public class App extends JavaPlugin implements Listener {

public HashMap<UUID, PlayerData> allPlayers = new HashMap<>();
public WorldManager worldManager = new WorldManager();

public void downloadAllUserData() throws Exception {
for (Player p : Bukkit.getOnlinePlayers()) {
Expand All @@ -45,6 +46,8 @@ public void onEnable() {
e.printStackTrace();
}

worldManager.loadWorlds();

getLogger().info("Main system enabled");
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit af9e71f

Please sign in to comment.