예제 #1
0
        public override void Send(string commands)
        {
            var s = BackendManager.GetServer(ServerName);

            if (s == null)
            {
                throw new MineProxy.Commands.ErrorException("Server not running");
            }
            s.SendCommand(commands);
        }
예제 #2
0
        public override string ToString()
        {
            var s = BackendManager.GetServer(ServerName);

            return(string.Format("[" + ServerName + " " + (s == null ? "unloaded" : s.ToString()) + " " + Players.Length + " players]"));
        }