From f54dc4efe5259d8912d941ebee44e82592747dbc Mon Sep 17 00:00:00 2001 From: KrystilizeNevaDies <57762380+KrystilizeNevaDies@users.noreply.github.com> Date: Thu, 10 Dec 2020 01:10:46 +1000 Subject: [PATCH] Style fixes + Imports --- .../net/minestom/server/command/CommandSender.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/minestom/server/command/CommandSender.java b/src/main/java/net/minestom/server/command/CommandSender.java index 365219f89..c3aec0e65 100644 --- a/src/main/java/net/minestom/server/command/CommandSender.java +++ b/src/main/java/net/minestom/server/command/CommandSender.java @@ -2,7 +2,6 @@ package net.minestom.server.command; import net.minestom.server.chat.ColoredText; import net.minestom.server.chat.JsonMessage; -import net.minestom.server.chat.RichMessage; import net.minestom.server.entity.Player; import net.minestom.server.permission.PermissionHandler; import org.jetbrains.annotations.NotNull; @@ -34,14 +33,16 @@ public interface CommandSender extends PermissionHandler { /** * Sends a {@link ColoredText} message. - * - * If this is not a {@link Player}, only the content of the message will be sent as a string. + * If this is not a {@link Player}, only the content of the message will be sent as a string. * * @param text The {@link ColoredText} to send. * */ default void sendMessage(@NotNull ColoredText text) { - if (this instanceof Player) ((Player) this).sendMessage((JsonMessage) text); - else sendMessage(text.getMessage()); + if (this instanceof Player) { + ((Player) this).sendMessage((JsonMessage) text); + } else { + sendMessage(text.getMessage()); + } } /**