Skip to content

Commit

Permalink
feat(submotd): Add getSubMotd method and fix level name retrieval (#27
Browse files Browse the repository at this point in the history
)

* feat(submotd): added getSubMotd

* fix: Correction of the world name on the startgame package
  • Loading branch information
AzaleeX authored Sep 14, 2024
1 parent 43468d7 commit 3fdb504
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/org/sculk/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ public String getMotd() {
return motd;
}

public String getSubMotd() {
return submotd;
}

public UUID getServerId() {
return serverId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void setUp() {
startGamePacket.setEducationProductionId("");
startGamePacket.setForceExperimentalGameplay(OptionalBoolean.empty());

String serverName = session.getServer().getMotd();
String serverName = session.getServer().getSubMotd();
startGamePacket.setLevelId(serverName);
startGamePacket.setLevelName(serverName);

Expand Down

0 comments on commit 3fdb504

Please sign in to comment.