diff --git a/TebexOxide/TebexOxide/TebexDonate.cs b/TebexOxide/TebexOxide/TebexDonate.cs index bde6a2d..589cfa4 100644 --- a/TebexOxide/TebexOxide/TebexDonate.cs +++ b/TebexOxide/TebexOxide/TebexDonate.cs @@ -624,7 +624,7 @@ private void CheckCommandQueue(bool first) { float secondsUntilNextCheck = 225f; - if (response != null) + if (response != null && code != 500) { try { @@ -701,7 +701,7 @@ private void CheckoutURL(IPlayer player, string packageId) { webrequest.Enqueue($"{BASE_URL}/checkout?username={player.Name}&package_id={packageId}", "", (code, response) => { - if (response != null) + if (response != null && code != 500) { try { @@ -827,7 +827,7 @@ private void FetchListings() webrequest.Enqueue($"{BASE_URL}/listing", "", (code, response) => { - if (response != null) + if (response != null && code != 500) { try { @@ -956,7 +956,7 @@ private void FetchStoreInformation(bool command, string secretKey) webrequest.Enqueue($"{BASE_URL}/information", "", (code, response) => { - if (response != null) + if (response != null && code != 500) { try { @@ -1138,7 +1138,7 @@ private void ProcessOfflineCommands() { webrequest.Enqueue($"{BASE_URL}/queue/offline-commands", "", (code, response) => { - if (response != null) + if (response != null && code != 500) { try { @@ -1192,7 +1192,7 @@ private void ProcessOnlineCommands(IPlayer player, string shopPlayerId) { webrequest.Enqueue($"{BASE_URL}/queue/online-commands/{shopPlayerId}", "", (code, response) => { - if (response != null) + if (response != null && code != 500) { try {