mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Fix enable/disable message ordering in /msgtoggle
This commit is contained in:
parent
6eb5aded38
commit
540a15160c
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user