summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-19 00:46:41 +0200
committersnowleo <schneeleo@gmail.com>2011-07-19 00:46:41 +0200
commitfdbb6510ef064e5c25bcf86f031a1cd1c61078a3 (patch)
tree3b0a6edbbff056ffb2cee2d9e6882fc7c4d7996e
parentd0bf1905a9e84f8b70d7d85d6a9253b16a7cc223 (diff)
downloadEssentials-fdbb6510ef064e5c25bcf86f031a1cd1c61078a3.tar
Essentials-fdbb6510ef064e5c25bcf86f031a1cd1c61078a3.tar.gz
Essentials-fdbb6510ef064e5c25bcf86f031a1cd1c61078a3.tar.lz
Essentials-fdbb6510ef064e5c25bcf86f031a1cd1c61078a3.tar.xz
Essentials-fdbb6510ef064e5c25bcf86f031a1cd1c61078a3.zip
Send helpop messages to console
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelpop.java5
1 files changed, 4 insertions, 1 deletions
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);
}
}
}