fixed some wonky commit thing that happened, thus the following modifications are brought to you by Delbertina.

This commit is contained in:
CreedTheFreak 2017-09-03 19:49:57 -07:00
parent 86315fed8d
commit f10a766442
6 changed files with 36 additions and 7 deletions

View file

@ -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);