From fdbb6510ef064e5c25bcf86f031a1cd1c61078a3 Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 19 Jul 2011 00:46:41 +0200 Subject: [PATCH] Send helpop messages to console --- .../src/com/earth2me/essentials/commands/Commandhelpop.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelpop.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelpop.java index 51d6c0a6a..261cad062 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelpop.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelpop.java @@ -4,6 +4,7 @@ import org.bukkit.Server; import org.bukkit.entity.Player; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; +import java.util.logging.Level; public class Commandhelpop extends EssentialsCommand @@ -22,6 +23,8 @@ public class Commandhelpop extends EssentialsCommand } charge(user); + final String message = Util.format("helpOp", user.getDisplayName(), getFinalArg(args, 0)); + logger.log(Level.INFO, message); for (Player p : server.getOnlinePlayers()) { User u = ess.getUser(p); @@ -29,7 +32,7 @@ public class Commandhelpop extends EssentialsCommand { continue; } - u.sendMessage(Util.format("helpOp", user.getDisplayName(), getFinalArg(args, 0))); + u.sendMessage(message); } } }