summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-03-26 20:08:38 +0000
committerKHobbits <rob@khobbits.co.uk>2014-03-26 20:08:38 +0000
commit0c504d9afe1933a97858dcbc451ee2abf71b10d1 (patch)
treeadada5df653b42fc234f4aedd99d392f38cfe456
parent85c641c7eb03f8b7c62d8e5872f0f26591c56aac (diff)
downloadEssentials-0c504d9afe1933a97858dcbc451ee2abf71b10d1.tar
Essentials-0c504d9afe1933a97858dcbc451ee2abf71b10d1.tar.gz
Essentials-0c504d9afe1933a97858dcbc451ee2abf71b10d1.tar.lz
Essentials-0c504d9afe1933a97858dcbc451ee2abf71b10d1.tar.xz
Essentials-0c504d9afe1933a97858dcbc451ee2abf71b10d1.zip
Add local echo to tempban command.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandtempban.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
index 84806ad0b..1565d1f65 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
@@ -6,6 +6,7 @@ import static com.earth2me.essentials.I18n.tl;
import com.earth2me.essentials.User;
import com.earth2me.essentials.utils.DateUtil;
import java.util.GregorianCalendar;
+import java.util.logging.Level;
import org.bukkit.Server;
@@ -59,6 +60,8 @@ public class Commandtempban extends EssentialsCommand
user.setBanned(true);
user.kickPlayer(banReason);
- ess.broadcastMessage("essentials.ban.notify", tl("playerBanned", senderName, user.getName(), banReason, DateUtil.formatDateDiff(banTimestamp)));
+ final String message = tl("playerBanned", senderName, user.getName(), banReason, DateUtil.formatDateDiff(banTimestamp));
+ server.getLogger().log(Level.INFO, message);
+ ess.broadcastMessage("essentials.ban.notify", message);
}
}