2121 * Work on fork by Hedius (Version >= 8.0.0.0)
2222 *
2323 * AdKats.cs
24- * Version 8.1.3.2
25- * 06-MAY -2022
24+ * Version 8.1.4.0
25+ * 15-AUG -2022
2626 *
2727 * Automatic Update Information
28- * <version_code>8.1.3.2 </version_code>
28+ * <version_code>8.1.4.0 </version_code>
2929 */
3030
3131using System;
@@ -68,7 +68,7 @@ public class AdKats : PRoConPluginAPI, IPRoConPluginInterface
6868 {
6969
7070 //Current Plugin Version
71- private const String PluginVersion = "8.1.3.2 ";
71+ private const String PluginVersion = "8.1.4.0 ";
7272
7373 public enum GameVersionEnum
7474 {
@@ -9690,7 +9690,7 @@ private void FetchPluginDocumentation()
96909690 {
96919691 try
96929692 {
9693- _pluginLinks = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/links ?cacherand=" + Environment.TickCount);
9693+ _pluginLinks = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/LINKS.md ?cacherand=" + Environment.TickCount);
96949694 Log.Debug(() => "Plugin links fetched from backup location.", 1);
96959695 }
96969696 catch (Exception)
@@ -9709,7 +9709,7 @@ private void FetchPluginDocumentation()
97099709 {
97109710 try
97119711 {
9712- _pluginDescription = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/readme ?cacherand=" + Environment.TickCount);
9712+ _pluginDescription = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/README.md ?cacherand=" + Environment.TickCount);
97139713 Log.Debug(() => "Plugin readme fetched from backup location.", 1);
97149714 }
97159715 catch (Exception)
@@ -9728,7 +9728,7 @@ private void FetchPluginDocumentation()
97289728 {
97299729 try
97309730 {
9731- _pluginChangelog = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/changelog ?cacherand=" + Environment.TickCount);
9731+ _pluginChangelog = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/CHANGELOG.md ?cacherand=" + Environment.TickCount);
97329732 Log.Debug(() => "Plugin changelog fetched from backup location.", 1);
97339733 }
97349734 catch (Exception)
@@ -9765,7 +9765,7 @@ private void FetchPluginDocumentation()
97659765 <h2 style='color:#DF0101;'>
97669766 You are running an outdated version! Version " + latestStableVersion + @" is available for download!
97679767 </h2>
9768- <a href='https://myrcon.net/files/file/30-advanced-in-game-admin-and-ban-enforcer-adkats /' target='_blank'>
9768+ <a href='https://github.com/Hedius/E4GLAdKats /' target='_blank'>
97699769 Download Version " + latestStableVersion + @"!
97709770 </a><br/>
97719771 Download link below.";
@@ -40137,7 +40137,7 @@ private Boolean runDBSetupScript()
4013740137 {
4013840138 try
4013940139 {
40140- command.CommandText = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/ adkats/sqlsetup ?cacherand=" + Environment.TickCount);
40140+ command.CommandText = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/ adkats.sql ?cacherand=" + Environment.TickCount);
4014140141 Log.Debug(() => "SQL setup script fetched from backup location.", 1);
4014240142 }
4014340143 catch (Exception)
@@ -51282,7 +51282,7 @@ private ArrayList FetchAdKatsReputationDefinitions()
5128251282 {
5128351283 try
5128451284 {
51285- repInfo = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/reputation " + "?cacherand=" + Environment.TickCount);
51285+ repInfo = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/adkatsreputationstats.json " + "?cacherand=" + Environment.TickCount);
5128651286 Log.Debug(() => "Reputation definitions fetched from backup location.", 1);
5128751287 }
5128851288 catch (Exception)
@@ -51353,7 +51353,7 @@ private List<ASpecialGroup> FetchASpecialGroupDefinitions()
5135351353 {
5135451354 try
5135551355 {
51356- groupInfo = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/specialgroups " + "?cacherand=" + Environment.TickCount);
51356+ groupInfo = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/adkatsspecialgroups.json " + "?cacherand=" + Environment.TickCount);
5135751357 Log.Debug(() => "Special group definitions fetched from backup location.", 1);
5135851358 }
5135951359 catch (Exception)
@@ -51562,7 +51562,7 @@ private List<ASQLUpdate> FetchSQLUpdates()
5156251562 {
5156351563 try
5156451564 {
51565- updateInfo = Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/sqlupdates " + "?cacherand=" + Environment.TickCount);
51565+ updateInfo = Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/adkatsupdates.json " + "?cacherand=" + Environment.TickCount);
5156651566 Log.Debug(() => "SQL updates fetched from backup location.", 1);
5156751567 }
5156851568 catch (Exception)
@@ -53134,8 +53134,8 @@ public void CheckForPluginUpdates(Boolean manual)
5313453134 {
5313553135 try
5313653136 {
53137- string stableURL = "https://api.myrcon.net/plugins/adkats/branch/main " + "?cacherand=" + Environment.TickCount;
53138- string testURL = "https://api.myrcon.net/plugins/adkats/branch/ test" + "?cacherand=" + Environment.TickCount;
53137+ string stableURL = "https://adkats.e4gl.com/AdKats.cs " + "?cacherand=" + Environment.TickCount;
53138+ string testURL = "https://adkats.e4gl.com/ test/AdKats.cs " + "?cacherand=" + Environment.TickCount;
5313953139 if (_pluginVersionStatus == VersionStatus.OutdatedBuild)
5314053140 {
5314153141 pluginSource = Util.ClientDownloadTimer(client, stableURL);
@@ -63007,7 +63007,7 @@ private Hashtable FetchAWeaponNames()
6300763007 {
6300863008 try
6300963009 {
63010- downloadString = _plugin.Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/weaponnames " + "?cacherand=" + Environment.TickCount);
63010+ downloadString = _plugin.Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/adkatsweaponnames.json " + "?cacherand=" + Environment.TickCount);
6301163011 _plugin.Log.Debug(() => "Weapon names fetched from backup location.", 1);
6301263012 }
6301363013 catch (Exception)
@@ -63642,7 +63642,7 @@ private Hashtable FetchWeaponDefinitions()
6364263642 {
6364363643 try
6364463644 {
63645- weaponInfo = Plugin.Util.ClientDownloadTimer(client, "https://api.myrcon.net/plugins/adkats/weapons " + "?cacherand=" + Environment.TickCount);
63645+ weaponInfo = Plugin.Util.ClientDownloadTimer(client, "https://adkats.e4gl.com/adkatsblweaponstats.json " + "?cacherand=" + Environment.TickCount);
6364663646 Plugin.Log.Debug(() => "Weapon statistic definitions fetched from backup location.", 1);
6364763647 }
6364863648 catch (Exception)
0 commit comments