From 034ffbd0bcdbac9367a09aa03addc41d48f15b53 Mon Sep 17 00:00:00 2001 From: delbertina Date: Sun, 17 Dec 2017 00:16:06 -0600 Subject: [PATCH] Added space when adding reason to string. --- Essentials/src/com/earth2me/essentials/commands/Commandafk.java | 2 +- .../src/com/earth2me/essentials/commands/Commandmail.java | 2 +- Essentials/src/com/earth2me/essentials/commands/Commandme.java | 2 +- Essentials/src/com/earth2me/essentials/commands/Commandr.java | 2 +- .../src/com/earth2me/essentials/commands/Commandseen.java | 2 +- .../src/com/earth2me/essentials/commands/Commandwhois.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandafk.java b/Essentials/src/com/earth2me/essentials/commands/Commandafk.java index 0206dd00e..df5847274 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandafk.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandafk.java @@ -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")); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java index 5e4e5bbf3..a9e188a93 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmail.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmail.java @@ -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); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandme.java b/Essentials/src/com/earth2me/essentials/commands/Commandme.java index f41f09d0e..8e954e927 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandme.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandme.java @@ -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) { diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandr.java b/Essentials/src/com/earth2me/essentials/commands/Commandr.java index 9b997ca1f..2e251c666 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandr.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandr.java @@ -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); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java index 41a8f0501..6366649bf 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java @@ -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"))) { diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java index d9598f77c..876a0f58a 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java @@ -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