mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Added 8 new messages for "...Reason" versions of mute messages and implemented em.
This commit is contained in:
parent
e3ee9cb4c7
commit
3d33bbc33d
32 changed files with 209 additions and 44 deletions
|
@ -28,8 +28,7 @@ public class Commandr extends EssentialsCommand {
|
|||
User user = ess.getUser(sender.getPlayer());
|
||||
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced") + (user.hasMuteReason() ?
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
throw new Exception(user.hasMuteReason() ? tl("voiceSilencedReason", user.getMuteReason()) : tl("voiceSilenced"));
|
||||
}
|
||||
|
||||
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue