Skip to content

Commit

Permalink
Added {NL} support for kick-message. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ANameSpace authored Jun 25, 2024
1 parent 1c338e6 commit 8ad8543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/elytrium/fastmotd/FastMOTD.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void reload() {
this.kickReason.release();
}

Component kickReasonComponent = serializer.deserialize(Settings.IMP.MAINTENANCE.KICK_MESSAGE);
Component kickReasonComponent = serializer.deserialize(Settings.IMP.MAINTENANCE.KICK_MESSAGE.replace("{NL}", "\n"));
this.kickReason = this.preparedPacketFactory
.createPreparedPacket(ProtocolVersion.MINIMUM_VERSION, ProtocolVersion.MAXIMUM_VERSION)
.prepare(version -> DisconnectPacket.create(kickReasonComponent, version, StateRegistry.LOGIN))
Expand Down

0 comments on commit 8ad8543

Please sign in to comment.