[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
This commit is contained in:
snowleo 2011-04-05 18:28:18 +00:00
parent 4b8ffabfb8
commit 7137e7b829

View File

@ -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]);