diff --git a/Plugin.cs b/Plugin.cs index 131d16c..a8eac2e 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -5,6 +5,7 @@ using UnityEngine; using UnityEngine.UI; using TMPro; using Photon.Pun; +using BepInEx.Logging; namespace SpookTubeEX; @@ -19,8 +20,11 @@ public class Plugin : BaseUnityPlugin // public static void ModalProxy(string title, string message) => Modal.ShowError(title, message); + internal new static ManualLogSource Logger; + private void Awake() { + Logger = base.Logger; // Config URL = Config.Bind("Networking", "WebsocketURL", "ws://spook.redbigz.com/api/upload", "The ws[s]:// URL."); diff --git a/Uploader.cs b/Uploader.cs index 5056c1e..94c30c6 100644 --- a/Uploader.cs +++ b/Uploader.cs @@ -88,7 +88,7 @@ class SpookedUploader if (evt.Data.StartsWith("us")) { - // Modal.ShowError("Unsafe Upload", "The server responded with an HEUR error. Your file has not been uploaded due to security reasons. If you believe this was an error, contact st.appeals.vid@redbigz.com with this ID:\n4cedcd69-b5e4-4cda-9142-104009841695\n\nYour appeal will be rejected if:\n- Your video uses mods such as Flashcard\n\nYour IP address will be banned if:\n- Your video contains illicit content\n- Your video contains sexual imagery\n\nYour email address WILL be blocked if you troll the email address above. It is an automated service and your address will be blacklisted, along with your IP address if it has connections to your email."); + Plugin.Logger.LogInfo("SpookTubeEX has experienced a heuristics error. Please contact ModMail at https://discord.gg/Gw2f86B2vC with this UUID in your ticket request: " + uuid + "\nThis is an automated service, so trolling will get your IP blocked from accessing anything with SpookedTube and your Discord account banned from the server. DO NOT SHARE THIS UUID WITH ANYONE!"); } };