mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-09 05:53:20 +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
|
@ -117,8 +117,9 @@ public class Commandseen extends EssentialsCommand {
|
|||
sender.sendMessage(tl("whoisJail", (user.getJailTimeout() > 0 ? DateUtil.formatDateDiff(user.getJailTimeout()) : tl("true"))));
|
||||
}
|
||||
if (user.isMuted()) {
|
||||
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))) + (user.hasMuteReason() ?
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
sender.sendMessage(user.hasMuteReason() ? (tl("whoisMutedReason", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true")), user.getMuteReason())) :
|
||||
tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))));
|
||||
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))));
|
||||
}
|
||||
final String location = user.getGeoLocation();
|
||||
if (location != null && (!(sender.isPlayer()) || ess.getUser(sender.getPlayer()).isAuthorized("essentials.geoip.show"))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue