Legacy format velocity kick reason instead of just stripping all formatting
This commit is contained in:
+4
-1
@@ -9,6 +9,7 @@ import net.kyori.adventure.bossbar.BossBar;
|
||||
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;
|
||||
@@ -154,7 +155,9 @@ public class VelocityPlayer implements AdaptedPlayer, Audience {
|
||||
main.getMessages().getComponent(
|
||||
"velocity-kick-message",
|
||||
"SERVER:" + server.getName(),
|
||||
"REASON:"+PlainTextComponentSerializer.plainText().serialize(reason)
|
||||
"REASON:" +
|
||||
LegacyComponentSerializer.legacyAmpersand()
|
||||
.serialize(reason)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user