Fix enable/disable message ordering in /msgtoggle

This commit is contained in:
vemacs 2015-07-29 11:26:36 -06:00
parent 6eb5aded38
commit 540a15160c

View File

@ -41,9 +41,9 @@ public class Commandmsgtoggle extends EssentialsToggleCommand {
user.setIgnoreMsg(enabled);
user.sendMessage(enabled ? tl("msgEnabled") : tl("msgDisabled"));
user.sendMessage(!enabled ? tl("msgEnabled") : tl("msgDisabled"));
if (!sender.isPlayer() || !sender.getPlayer().equals(user.getBase())) {
sender.sendMessage(enabled ? tl("msgEnabledFor", user.getDisplayName()) : tl("msgDisabledFor", user.getDisplayName()));
sender.sendMessage(!enabled ? tl("msgEnabledFor", user.getDisplayName()) : tl("msgDisabledFor", user.getDisplayName()));
}
}
}