mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-14 06:36:40 +01:00
Added space when adding reason to string.
This commit is contained in:
parent
127a7bb2ce
commit
034ffbd0bc
@ -52,7 +52,7 @@ public class Commandafk extends EssentialsCommand {
|
||||
if (message != null && sender != null) {
|
||||
if (sender.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced") + (sender.hasMuteReason() ?
|
||||
tl("muteReason", sender.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", sender.getMuteReason())) : ""));
|
||||
}
|
||||
if (!sender.isAuthorized("essentials.afk.message")) {
|
||||
throw new Exception(tl("noPermToAFKMessage"));
|
||||
|
@ -49,7 +49,7 @@ public class Commandmail extends EssentialsCommand {
|
||||
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced") + (user.hasMuteReason() ?
|
||||
tl("muteReason", user.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
}
|
||||
|
||||
User u = getPlayer(server, args[1], true, true);
|
||||
|
@ -25,7 +25,7 @@ public class Commandme extends EssentialsCommand {
|
||||
public void run(Server server, User user, String commandLabel, String[] args) throws Exception {
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced") + (user.hasMuteReason() ?
|
||||
tl("muteReason", user.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
|
@ -29,7 +29,7 @@ public class Commandr extends EssentialsCommand {
|
||||
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced") + (user.hasMuteReason() ?
|
||||
tl("muteReason", user.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
}
|
||||
|
||||
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
||||
|
@ -118,7 +118,7 @@ public class Commandseen extends EssentialsCommand {
|
||||
}
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))) + (user.hasMuteReason() ?
|
||||
tl("muteReason", user.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
}
|
||||
final String location = user.getGeoLocation();
|
||||
if (location != null && (!(sender.isPlayer()) || ess.getUser(sender.getPlayer()).isAuthorized("essentials.geoip.show"))) {
|
||||
|
@ -57,7 +57,7 @@ public class Commandwhois extends EssentialsCommand {
|
||||
}
|
||||
sender.sendMessage(tl("whoisJail", (user.isJailed() ? user.getJailTimeout() > 0 ? DateUtil.formatDateDiff(user.getJailTimeout()) : tl("true") : tl("false"))));
|
||||
throw new Exception(tl("voiceSilenced") + (user.hasMuteReason() ?
|
||||
tl("muteReason", user.getMuteReason()) : ""));
|
||||
(" " + tl("muteReason", user.getMuteReason())) : ""));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user