Skip to content

Commit f00d4f6

Browse files
committed
add in TestServer prevention ( breaks the fuck out scripts...?) we just dont get any data back..
1 parent 2920c03 commit f00d4f6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

CoreBots.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,20 @@ public void SetOptions(bool changeTo = true, bool disableClassSwap = false)
235235

236236
if (!Bot.Player.LoggedIn)
237237
Bot.StopSync();
238+
/* Test Server IPs:
239+
Twilly ServerTest
240+
Artix ServerTest
241+
- Server IP - sockpuppet.aq.com
242+
*/
243+
if (changeTo && Bot.Player.LoggedIn && !String.IsNullOrEmpty(Bot.Player.ServerIP))
244+
{
245+
if (Bot.Player.ServerIP.ToString() == "sockpuppet.aq.com")
246+
{
247+
Bot.Log("You're current on a test server!! This will cause issues with scripts\n" + "please logout and login to a non-test server manuall\n" + "*or* set your manager to a non-Test server");
248+
changeTo = false;
249+
}
250+
}
251+
238252
ReadCBO();
239253
#region Social Privacy Options
240254

0 commit comments

Comments
 (0)