mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-28 00:17:11 +00:00
fixed some wonky commit thing that happened, thus the following modifications are brought to you by Delbertina.
This commit is contained in:
parent
86315fed8d
commit
f10a766442
6 changed files with 36 additions and 7 deletions
|
@ -28,7 +28,12 @@ public class Commandr extends EssentialsCommand {
|
|||
User user = ess.getUser(sender.getPlayer());
|
||||
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced"));
|
||||
if (user.getMuteReason ().equals ("")) {
|
||||
throw new Exception(tl("voiceSilenced"));
|
||||
}
|
||||
else {
|
||||
throw new Exception(tl("voiceSilenced") + tl("muteFormat", user.getMuteReason ()));
|
||||
}
|
||||
}
|
||||
|
||||
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue