This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ private void Server_Query()
21
21
{
22
22
var output = new List < string > ( ) ;
23
23
24
- if ( ! ServerIsRunning )
25
- {
26
- output . Add ( "No server running to send commands to." ) ;
27
- goto Dispatcher ;
28
- }
29
-
30
24
var c = Program . Configs [ Program . SelectedConfig ] ;
31
25
if ( string . IsNullOrWhiteSpace ( c . RConIP ) || string . IsNullOrWhiteSpace ( c . RConCommands ) )
32
26
{
@@ -89,13 +83,11 @@ private void Server_Query()
89
83
switch ( ( SocketError ) socketEx . ErrorCode )
90
84
{
91
85
case SocketError . ConnectionReset :
92
- output . Add ( "The connection was reset. Check your connection data and try again. You also could've been RCON banned for hacking attempts." ) ;
93
- goto Dispatcher ;
94
86
case SocketError . NotConnected :
95
87
case SocketError . TimedOut :
96
- output . Add ( "Connection to the server timed out. Make sure you've set it up correctly.\n " +
88
+ output . Add ( "Connection to the server reset or timed out. Make sure you've set it up correctly, and the server you're targeting is available .\n " +
97
89
"Your data:\n " +
98
- $ " - IP: { c . RConIP } \n " +
90
+ $ " - IP: { c . RConIP } \n " +
99
91
$ " - Port: { c . RConPort } ") ;
100
92
goto Dispatcher ;
101
93
}
You can’t perform that action at this time.
0 commit comments