Skip to content

Commit

Permalink
Fix exception on player update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenicos committed Apr 17, 2022
1 parent 0be3ad3 commit e4ae854
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public PlayerUpdateTask(ClanUpdater updater) {
public String getPlayersAsJson() {
// No need to use JsonObject class, just simple formatting with StringBuilder
StringBuilder builder = new StringBuilder();
connected.forEach((player, uuid) -> builder.append(", \"").append(player).append("\": \"").append(uuid).append("\""));
new HashMap<>(connected).forEach((player, uuid) -> builder.append(", \"").append(player).append("\": \"").append(uuid).append("\""));
return "{" + (builder.length() > 0 ? builder.substring(2) : "") + "}";
}

Expand Down
62 changes: 0 additions & 62 deletions src/main/java/com/saicone/uclansync/util/Config.java

This file was deleted.

0 comments on commit e4ae854

Please sign in to comment.