summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-01-14 11:59:31 +0000
committerKHobbits <rob@khobbits.co.uk>2013-01-14 11:59:31 +0000
commitd74952927a03e8461b5f76b1ff2dbdacd53f145c (patch)
treea57c164668d72e58598ff35d55672ad87039ccb8
parentf8cf3be87fb663a9adcb39271ee178727722de11 (diff)
downloadEssentials-d74952927a03e8461b5f76b1ff2dbdacd53f145c.tar
Essentials-d74952927a03e8461b5f76b1ff2dbdacd53f145c.tar.gz
Essentials-d74952927a03e8461b5f76b1ff2dbdacd53f145c.tar.lz
Essentials-d74952927a03e8461b5f76b1ff2dbdacd53f145c.tar.xz
Essentials-d74952927a03e8461b5f76b1ff2dbdacd53f145c.zip
Only show ban reason in the in-game display, not full banFormat.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandban.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandban.java b/Essentials/src/com/earth2me/essentials/commands/Commandban.java
index 6bea234f4..b0f15e695 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandban.java
@@ -58,17 +58,17 @@ public class Commandban extends EssentialsCommand
String banReason;
if (args.length > 1)
{
- banReason = _("banFormat", Util.replaceFormat(getFinalArg(args, 1).replace("\\n", "\n").replace("|", "\n")), senderName);
+ banReason = Util.replaceFormat(getFinalArg(args, 1).replace("\\n", "\n").replace("|", "\n"));
}
else
{
- banReason = _("banFormat", _("defaultBanReason"), senderName);
+ banReason = _("defaultBanReason");
}
- user.setBanReason(banReason);
+ user.setBanReason(_("banFormat", banReason, senderName));
user.setBanned(true);
user.setBanTimeout(0);
- user.kickPlayer(banReason);
+ user.kickPlayer(_("banFormat", banReason, senderName));
server.getLogger().log(Level.INFO, _("playerBanned", senderName, user.getName(), banReason));