Skip to content

Commit

Permalink
Use new URL for server connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Vauff committed Nov 16, 2023
1 parent d261210 commit 07a4894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/vauff/maunzdiscord/commands/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void runCmd(DeferrableInteractionEvent event, User user, Document doc, b
EmbedCreateSpec embed = EmbedCreateSpec.builder()
.color(MapImages.getMapImageColour(url))
.timestamp(Instant.ofEpochMilli(serverDoc.getLong("timestamp")))
.description("Currently Playing: **" + doc.getString("lastMap").replace("_", "\\_") + "**\nPlayers Online: **" + serverDoc.getString("playerCount") + "**\nQuick Join: **[" + ipPort + "](https://vauff.com/?ip=" + ipPort + ")**")
.description("Currently Playing: **" + doc.getString("lastMap").replace("_", "\\_") + "**\nPlayers Online: **" + serverDoc.getString("playerCount") + "**\nQuick Join: **[" + ipPort + "](https://vauff.com/connect.php?ip=" + ipPort + ")**")
.build();

if (!url.equals(""))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void run()
EmbedCreateSpec embed = EmbedCreateSpec.builder()
.color(MapImages.getMapImageColour(url))
.timestamp(Instant.ofEpochMilli(timestamp))
.description("Now Playing: **" + map.replace("_", "\\_") + "**\nPlayers Online: **" + playerCount + "**\nQuick Join: **[" + ipPort + "](https://vauff.com/?ip=" + ipPort + ")**")
.description("Now Playing: **" + map.replace("_", "\\_") + "**\nPlayers Online: **" + playerCount + "**\nQuick Join: **[" + ipPort + "](https://vauff.com/connect.php?ip=" + ipPort + ")**")
.build();

if (!url.equals(""))
Expand Down

0 comments on commit 07a4894

Please sign in to comment.