SPIGOT-7796: Kickplayer newlines not working

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-06-24 06:33:02 +10:00
parent d8b3812655
commit 0d64e2be4b

View File

@ -479,7 +479,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
public void kickPlayer(String message) {
if (getHandle().connection == null) return;
getHandle().connection.disconnect(CraftChatMessage.fromStringOrEmpty(message));
getHandle().connection.disconnect(CraftChatMessage.fromStringOrEmpty(message, true));
}
@Override