Skip to content

Commit

Permalink
Fix sending an empty prefix when the message is set to nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
DSH105 committed Feb 19, 2014
1 parent b3be4e7 commit 8031913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/github/dsh105/echopet/util/Lang.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8031913

Please sign in to comment.