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); }
public override string ToString() { var s = BackendManager.GetServer(ServerName); return(string.Format("[" + ServerName + " " + (s == null ? "unloaded" : s.ToString()) + " " + Players.Length + " players]")); }