protected override void Load() { PluginTPA.Instance = this; string str1 = !Configuration.Instance.TPADelay ? "disabled" : "enabled"; string str2 = !Configuration.Instance.TPACoolDown ? "disabled" : "enabled"; string str3 = !Configuration.Instance.CancelOnBleeding ? "disabled" : "enabled"; string str4 = !Configuration.Instance.CancelOnHurt ? "disabled" : "enabled"; string str6 = !Configuration.Instance.NinjaTP ? "disabled" : "enabled"; //string str5 = !Configuration.Instance.TPADoubleTap ? "disabled" : "enabled"; int num1 = Configuration.Instance.TPACoolDownSeconds; int num2 = Configuration.Instance.TPADelaySeconds; int num4 = Configuration.Instance.NinjaEffectID; //int num3 = Configuration.Instance.DoubleTapDelaySeconds; Logger.LogWarning("TPA by LeeIzaZombie, Version: " + Assembly.GetName().Version); Logger.Log("Fixed by educatalan02 - Support: " + Discord); Logger.LogWarning("..."); Logger.LogWarning("Current configuration:"); Logger.LogWarning("..."); Logger.LogWarning("Cooldown TPA requests: " + str2 + ", Seconds: " + num1); Logger.LogWarning("Delay teleporting: " + str1 + ", Seconds: " + num2); Logger.LogWarning("Cancel teleport if bleeding: " + str3); //Logger.LogWarning("Double Tap: " + str5 + ", Seconds: " + num3); Logger.LogWarning("NinjaTP: " + str6 + ", EffectID: " + num4); Logger.LogWarning("[Delay] Cancel teleport if hurt: " + str4); Logger.LogWarning("..."); Logger.LogWarning("Checking for problems:"); int i = 0; if (Translate("translation_version_dont_edit") != "3") { Logger.LogError("Your translations file is out of date, please reload the plugin after deleting old configuration folder."); i++; } if (Configuration.Instance.TPACoolDownSeconds < 0) { Logger.LogError("Cooldown Seconds configuration is invalid, please fix it."); i++; } if (Configuration.Instance.TPADelaySeconds < 0) { Logger.LogError("Delay Seconds configuration is invalid, please fix it."); i++; } if (i != 0) { Logger.LogWarning("Error checking done."); } else { Logger.LogWarning("No errors have been found!"); } Logger.LogWarning("..."); Logger.LogWarning("Always welcome to suggestions! If you find a bug, please report it!"); U.Events.OnPlayerConnected += TPA_PlayerJoin; U.Events.OnPlayerDisconnected += TPA_PlayerLeave; }
protected override void Load() { Instance = this; }