summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-05 18:28:18 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-05 18:28:18 +0000
commit7137e7b829144b8aa5b0c926b3d3ea9ee2919766 (patch)
tree9a133db5fd9afe96134973b99d9353a83f0f5516
parent4b8ffabfb8c0e6ade5819f0a1939ee923f0556f4 (diff)
downloadEssentials-7137e7b829144b8aa5b0c926b3d3ea9ee2919766.tar
Essentials-7137e7b829144b8aa5b0c926b3d3ea9ee2919766.tar.gz
Essentials-7137e7b829144b8aa5b0c926b3d3ea9ee2919766.tar.lz
Essentials-7137e7b829144b8aa5b0c926b3d3ea9ee2919766.tar.xz
Essentials-7137e7b829144b8aa5b0c926b3d3ea9ee2919766.zip
[trunk] /msg /r Reply to the console. Add /r console command.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1135 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandmsg.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java
index c14bfa72e..7ea9bc009 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandmsg.java
@@ -38,11 +38,12 @@ public class Commandmsg extends EssentialsCommand
if (args[0].equalsIgnoreCase(Console.NAME))
{
- sender.sendMessage("[Me -> " + senderName + "§f] " + message);
+ sender.sendMessage("[Me -> " + Console.NAME + "§f] " + message);
CommandSender cs = Console.getCommandSender(server);
cs.sendMessage("[" + senderName + " -> Me§f] " + message);
replyTo.setReplyTo(cs);
Console.getConsoleReplyTo().setReplyTo(sender);
+ return;
}
List<Player> matches = server.matchPlayer(args[0]);