Skip to content

Commit

Permalink
家园接入云日志
Browse files Browse the repository at this point in the history
  • Loading branch information
wode490390 committed Mar 6, 2024
1 parent 42db60d commit a679037
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/cn/nukkit/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,14 @@ public Map<UUID, Player> getOnlinePlayers() {
return new HashMap<>(playerList);
}

public Map<UUID, Player> getOnlinePlayersUnsafe() {
return playerList;
}

public int getOnlinePlayerCount() {
return playerList.size();
}

public void addRecipe(Recipe recipe) {
this.craftingManager.registerRecipe(recipe);
}
Expand Down

0 comments on commit a679037

Please sign in to comment.