Skip to content

Commit

Permalink
Legacy format velocity kick reason instead of just stripping all form…
Browse files Browse the repository at this point in the history
…atting
  • Loading branch information
ajgeiss0702 committed May 25, 2023
1 parent a91d271 commit 9f08817
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -9,6 +9,7 @@
import net.kyori.adventure.sound.Sound;
import net.kyori.adventure.sound.SoundStop;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import net.kyori.adventure.title.Title;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -153,8 +154,10 @@ public void connect(AdaptedServer server) {
handle.sendMessage(
main.getMessages().getComponent(
"velocity-kick-message",
"SERVER:"+server.getName(),
"REASON:"+PlainTextComponentSerializer.plainText().serialize(reason)
"SERVER:" + server.getName(),
"REASON:" +
LegacyComponentSerializer.legacyAmpersand()
.serialize(reason)
)
);
}
Expand Down

0 comments on commit 9f08817

Please sign in to comment.