diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-10 02:27:10 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-10 02:27:10 +0100 |
commit | 368d3a40460afe90f237fb5dc52a9de0aada8662 (patch) | |
tree | 68f095916b88d68db6458788ebbc6ca6a0bf85d6 | |
parent | 8aab57e86b3c3fa2b890273893e63e6c840f2b5d (diff) | |
download | Essentials-368d3a40460afe90f237fb5dc52a9de0aada8662.tar Essentials-368d3a40460afe90f237fb5dc52a9de0aada8662.tar.gz Essentials-368d3a40460afe90f237fb5dc52a9de0aada8662.tar.lz Essentials-368d3a40460afe90f237fb5dc52a9de0aada8662.tar.xz Essentials-368d3a40460afe90f237fb5dc52a9de0aada8662.zip |
Add console log message when player is /banned
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandban.java | 3 |
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()) { |