mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-10 21:11:07 +01:00
Added space when adding reason to string. Dirty :/
This commit is contained in:
parent
43cbab37f0
commit
e8bfac0790
@ -55,7 +55,7 @@ public class Commandafk extends EssentialsCommand {
|
|||||||
throw new Exception(tl("voiceSilenced"));
|
throw new Exception(tl("voiceSilenced"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Exception(tl("voiceSilenced") + tl("muteReason", sender.getMuteReason ()));
|
throw new Exception(tl("voiceSilenced") + " " + tl("muteReason", sender.getMuteReason ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sender.isAuthorized("essentials.afk.message")) {
|
if (!sender.isAuthorized("essentials.afk.message")) {
|
||||||
|
@ -52,7 +52,7 @@ public class Commandmail extends EssentialsCommand {
|
|||||||
throw new Exception(tl("voiceSilenced"));
|
throw new Exception(tl("voiceSilenced"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Exception(tl("voiceSilenced") + tl("muteReason", user.getMuteReason ()));
|
throw new Exception(tl("voiceSilenced") + " " + tl("muteReason", user.getMuteReason ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ public class Commandme extends EssentialsCommand {
|
|||||||
throw new Exception(tl("voiceSilenced"));
|
throw new Exception(tl("voiceSilenced"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Exception(tl("voiceSilenced") + tl("muteReason", user.getMuteReason ()));
|
throw new Exception(tl("voiceSilenced") + " " + tl("muteReason", user.getMuteReason ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,8 +83,8 @@ public class Commandmute extends EssentialsCommand {
|
|||||||
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime));
|
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime));
|
||||||
user.sendMessage(tl("playerMutedFor", muteTime));
|
user.sendMessage(tl("playerMutedFor", muteTime));
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime) + tl("muteReason",user.getMuteReason()));
|
sender.sendMessage(tl("mutedPlayerFor", user.getDisplayName(), muteTime) + " " + tl("muteReason",user.getMuteReason()));
|
||||||
user.sendMessage(tl("playerMutedFor", muteTime) + tl("muteReason",user.getMuteReason()));
|
user.sendMessage(tl("playerMutedFor", muteTime) + " " + tl("muteReason",user.getMuteReason()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (user.getMuteReason ().equals ("")) {
|
if (user.getMuteReason ().equals ("")) {
|
||||||
@ -93,9 +93,9 @@ public class Commandmute extends EssentialsCommand {
|
|||||||
user.sendMessage(tl("playerMuted"));
|
user.sendMessage(tl("playerMuted"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(tl("mutedPlayer", user.getDisplayName()) + tl("muteReason",user.getMuteReason()));
|
sender.sendMessage(tl("mutedPlayer", user.getDisplayName()) + " " + tl("muteReason",user.getMuteReason()));
|
||||||
/** Send the player a message, why they were muted **/
|
/** Send the player a message, why they were muted **/
|
||||||
user.sendMessage(tl("playerMuted")+ tl("muteReason",user.getMuteReason()));
|
user.sendMessage(tl("playerMuted") + " " + tl("muteReason",user.getMuteReason()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String message;
|
final String message;
|
||||||
@ -104,14 +104,14 @@ public class Commandmute extends EssentialsCommand {
|
|||||||
message = tl("muteNotifyFor", sender.getSender().getName(), user.getName(), muteTime);
|
message = tl("muteNotifyFor", sender.getSender().getName(), user.getName(), muteTime);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
message = (tl("muteNotifyFor", sender.getSender().getName(), user.getName(), muteTime) + tl("muteReason",user.getMuteReason()));
|
message = (tl("muteNotifyFor", sender.getSender().getName(), user.getName(), muteTime) + " " + tl("muteReason",user.getMuteReason()));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (user.getMuteReason ().equals ("")) {
|
if (user.getMuteReason ().equals ("")) {
|
||||||
message = tl("muteNotify", sender.getSender().getName(), user.getName());
|
message = tl("muteNotify", sender.getSender().getName(), user.getName());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
message = (tl("muteNotify", sender.getSender().getName(), user.getName()) + tl("muteReason",user.getMuteReason()));
|
message = (tl("muteNotify", sender.getSender().getName(), user.getName()) + " " + tl("muteReason",user.getMuteReason()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server.getLogger().log(Level.INFO, message);
|
server.getLogger().log(Level.INFO, message);
|
||||||
|
@ -32,7 +32,7 @@ public class Commandr extends EssentialsCommand {
|
|||||||
throw new Exception(tl("voiceSilenced"));
|
throw new Exception(tl("voiceSilenced"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Exception(tl("voiceSilenced") + tl("muteReason", user.getMuteReason ()));
|
throw new Exception(tl("voiceSilenced") + " " + tl("muteReason", user.getMuteReason ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ public class Commandseen extends EssentialsCommand {
|
|||||||
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))));
|
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))) + tl("muteReason", user.getMuteReason ()));
|
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true"))) + " " + tl("muteReason", user.getMuteReason ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String location = user.getGeoLocation();
|
final String location = user.getGeoLocation();
|
||||||
|
@ -60,7 +60,7 @@ public class Commandwhois extends EssentialsCommand {
|
|||||||
sender.sendMessage(tl("whoisMuted", (user.isMuted() ? user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true") : tl("false"))));
|
sender.sendMessage(tl("whoisMuted", (user.isMuted() ? user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true") : tl("false"))));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(tl("whoisMuted", (user.isMuted() ? user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true") : tl("false"))+ tl("muteReason", user.getMuteReason ())));
|
sender.sendMessage(tl("whoisMuted", (user.isMuted() ? user.getMuteTimeout() > 0 ? DateUtil.formatDateDiff(user.getMuteTimeout()) : tl("true") : tl("false")) + " " + tl("muteReason", user.getMuteReason ())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user