diff --git a/src/main/java/io/github/dsh105/echopet/util/Lang.java b/src/main/java/io/github/dsh105/echopet/util/Lang.java index bcbacba2..95f7d3ef 100644 --- a/src/main/java/io/github/dsh105/echopet/util/Lang.java +++ b/src/main/java/io/github/dsh105/echopet/util/Lang.java @@ -117,7 +117,7 @@ public static void sendTo(CommandSender sender, String message) { EchoPetPlugin.getInstance().getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { String msg = event.getMessageToSend(); - if (msg != null || !msg.equalsIgnoreCase("") && !msg.equalsIgnoreCase(" ") && !msg.equalsIgnoreCase("none")) { + if (msg != null && !msg.equalsIgnoreCase("") && !msg.equalsIgnoreCase(" ") && !msg.equalsIgnoreCase("none")) { event.getRecipient().sendMessage(EchoPetPlugin.getInstance().prefix + " " + msg); } }