mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Rcon Console Output Changes
- changed the progress callback to false for RCON connect/disconnect messages.
This commit is contained in:
parent
48f9824146
commit
32956b18f0
2 changed files with 6 additions and 6 deletions
|
|
@ -2780,7 +2780,7 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
if (_rconConsole != null)
|
if (_rconConsole != null)
|
||||||
{
|
{
|
||||||
LogProfileMessage($"Closing RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).");
|
LogProfileMessage($"Closing RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).", false);
|
||||||
|
|
||||||
_rconConsole.Dispose();
|
_rconConsole.Dispose();
|
||||||
_rconConsole = null;
|
_rconConsole = null;
|
||||||
|
|
@ -2799,7 +2799,7 @@ namespace ServerManagerTool.Lib
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LogProfileMessage("");
|
LogProfileMessage("");
|
||||||
LogProfileMessage($"Creating RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).");
|
LogProfileMessage($"Creating RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).", false);
|
||||||
|
|
||||||
var endPoint = new IPEndPoint(_profile.ServerIPAddress, _profile.RCONPort);
|
var endPoint = new IPEndPoint(_profile.ServerIPAddress, _profile.RCONPort);
|
||||||
var server = QueryMaster.ServerQuery.GetServerInstance(QueryMaster.EngineType.Source, endPoint, sendTimeOut: 10000, receiveTimeOut: 10000);
|
var server = QueryMaster.ServerQuery.GetServerInstance(QueryMaster.EngineType.Source, endPoint, sendTimeOut: 10000, receiveTimeOut: 10000);
|
||||||
|
|
@ -2813,7 +2813,7 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
Task.Delay(1000).Wait();
|
Task.Delay(1000).Wait();
|
||||||
|
|
||||||
LogProfileMessage($"Opening RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).");
|
LogProfileMessage($"Opening RCON connection to server ({_profile.ServerIPAddress}:{_profile.RCONPort}).", false);
|
||||||
|
|
||||||
_rconConsole = server.GetControl(_profile.RCONPassword);
|
_rconConsole = server.GetControl(_profile.RCONPassword);
|
||||||
if (_rconConsole == null)
|
if (_rconConsole == null)
|
||||||
|
|
|
||||||
|
|
@ -2677,7 +2677,7 @@ namespace ServerManagerTool.Lib
|
||||||
{
|
{
|
||||||
if (_rconConsole != null)
|
if (_rconConsole != null)
|
||||||
{
|
{
|
||||||
LogProfileMessage($"Closing RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).");
|
LogProfileMessage($"Closing RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).", false);
|
||||||
|
|
||||||
_rconConsole.Dispose();
|
_rconConsole.Dispose();
|
||||||
_rconConsole = null;
|
_rconConsole = null;
|
||||||
|
|
@ -2696,7 +2696,7 @@ namespace ServerManagerTool.Lib
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LogProfileMessage("");
|
LogProfileMessage("");
|
||||||
LogProfileMessage($"Creating RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).");
|
LogProfileMessage($"Creating RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).", false);
|
||||||
|
|
||||||
var endPoint = new IPEndPoint(_profile.ServerIPAddress, _profile.RconPort);
|
var endPoint = new IPEndPoint(_profile.ServerIPAddress, _profile.RconPort);
|
||||||
var server = QueryMaster.ServerQuery.GetServerInstance(QueryMaster.EngineType.Source, endPoint, sendTimeOut: 10000, receiveTimeOut: 10000);
|
var server = QueryMaster.ServerQuery.GetServerInstance(QueryMaster.EngineType.Source, endPoint, sendTimeOut: 10000, receiveTimeOut: 10000);
|
||||||
|
|
@ -2710,7 +2710,7 @@ namespace ServerManagerTool.Lib
|
||||||
|
|
||||||
Task.Delay(1000).Wait();
|
Task.Delay(1000).Wait();
|
||||||
|
|
||||||
LogProfileMessage($"Opening RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).");
|
LogProfileMessage($"Opening RCON connection to server ({_profile.ServerIPAddress}:{_profile.RconPort}).", false);
|
||||||
|
|
||||||
_rconConsole = server.GetControl(_profile.RconPassword);
|
_rconConsole = server.GetControl(_profile.RconPassword);
|
||||||
if (_rconConsole == null)
|
if (_rconConsole == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue