summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandban.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-08-10 02:27:10 +0100
committerKHobbits <rob@khobbits.co.uk>2012-08-10 02:27:10 +0100
commitb50795f2cac625a72be15a95634dcd3234c072c8 (patch)
tree489afa6bf7d4667d115cf3b19c8c0cc14274a7dc /Essentials/src/com/earth2me/essentials/commands/Commandban.java
parentaa60feda2e4b74f9bc6fa53a3ceda27cc9bb503b (diff)
downloadEssentials-b50795f2cac625a72be15a95634dcd3234c072c8.tar
Essentials-b50795f2cac625a72be15a95634dcd3234c072c8.tar.gz
Essentials-b50795f2cac625a72be15a95634dcd3234c072c8.tar.lz
Essentials-b50795f2cac625a72be15a95634dcd3234c072c8.tar.xz
Essentials-b50795f2cac625a72be15a95634dcd3234c072c8.zip
Add console log message when player is /banned
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandban.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandban.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandban.java b/Essentials/src/com/earth2me/essentials/commands/Commandban.java
index 01e8ab5b3..f98cce98a 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandban.java
@@ -3,6 +3,7 @@ package com.earth2me.essentials.commands;
import com.earth2me.essentials.Console;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.User;
+import java.util.logging.Level;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -55,6 +56,8 @@ public class Commandban extends EssentialsCommand
user.setBanReason(banReason);
user.setBanned(true);
user.kickPlayer(banReason);
+
+ server.getLogger().log(Level.INFO, _("playerBanned", senderName, user.getName(), banReason));
for (Player onlinePlayer : server.getOnlinePlayers())
{