summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-16 03:11:52 +0200
committersnowleo <schneeleo@gmail.com>2011-07-16 03:11:52 +0200
commitd0345e45b69763e6a7b39ff91d38f94df708b245 (patch)
treeb2af9406d8ff176ebd97d4293a364587badca028
parent5ab3422b2953da397e521ab015a7998ee30aa598 (diff)
downloadEssentials-d0345e45b69763e6a7b39ff91d38f94df708b245.tar
Essentials-d0345e45b69763e6a7b39ff91d38f94df708b245.tar.gz
Essentials-d0345e45b69763e6a7b39ff91d38f94df708b245.tar.lz
Essentials-d0345e45b69763e6a7b39ff91d38f94df708b245.tar.xz
Essentials-d0345e45b69763e6a7b39ff91d38f94df708b245.zip
Revert broken ban reason for /tempban
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandtempban.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
index f1d91d2ac..639c2bda0 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
@@ -29,7 +29,7 @@ public class Commandtempban extends EssentialsCommand
final String time = getFinalArg(args, 1);
final long banTimestamp = Util.parseDateDiff(time, true);
- final String banReason = (args.length == 3 && !args[2].isEmpty()) ? args[2].toString() + " - " + Util.formatDateDiff(banTimestamp) : Util.format("tempBanned", Util.formatDateDiff(banTimestamp));
+ final String banReason = Util.format("tempBanned", Util.formatDateDiff(banTimestamp));
player.setBanReason(banReason);
player.setBanTimeout(banTimestamp);
player.kickPlayer(banReason);