public RCONService(Settings settings)
        {
            Log.Information("Initializing RCON service...");

            this._settings = settings;

            RCON rconSettings = _settings.RCON;

            rcon = RCONClient.INSTANCE;

            rcon.setupStream(rconSettings.RCONHost, rconSettings.RCONPort, rconSettings.RCONPassword);

            Log.Information("RCON service initialized!");
        }
Esempio n. 2
0
 public void Init()
 {
     Client = RCONClient.INSTANCE;
     Debug  = Sys.Ref.Config.Debug;
     Client.setupStream(Sys.Ref.Config.IP, Sys.Ref.Config.RCONPort, Sys.Ref.Config.RCONPassword);
 }