Ejemplo n.º 1
0
        public static void HandleChat(string text)
        {
            if (text != null)
            {
                text = text.Trim();
            }
            if (String.IsNullOrEmpty(text))
            {
                return;
            }
            if (ChatModes.Handle(null, text))
            {
                return;
            }

            Chat.MessageGlobal("Console [&a{0}%S]:&f {1}", ServerConfig.ConsoleName, text);
            Server.IRC.Say("Console [&a" + ServerConfig.ConsoleName + "%S]: " + text);
            Logger.Log(LogType.PlayerChat, "(console): " + text);
        }
Ejemplo n.º 2
0
        public static void HandleChat(string text)
        {
            if (text != null)
            {
                text = text.Trim();
            }
            if (String.IsNullOrEmpty(text))
            {
                return;
            }

            Player p = Player.Console;

            if (ChatModes.Handle(p, text))
            {
                return;
            }

            Chat.MessageChat(ChatScope.Global, p, "λFULL: &f" + text, null, null, true);
        }
Ejemplo n.º 3
0
        public static void HandleChat(string text, Action <string> output)
        {
            if (text != null)
            {
                text = text.Trim();
            }
            if (String.IsNullOrEmpty(text))
            {
                return;
            }
            if (ChatModes.Handle(null, text))
            {
                return;
            }

            Chat.MessageAll("Console [&a{0}%S]:&f {1}", Server.ZallState, text);
            Server.IRC.Say("Console [&a" + Server.ZallState + "%S]: " + text);
            Server.s.Log("(Console): " + text, true);
            output("<CONSOLE>: " + text);
        }