21
21
* Work on fork by Hedius (Version >= 8.0.0.0)
22
22
*
23
23
* AdKats.cs
24
- * Version 8.1.3.2
25
- * 06-MAY -2022
24
+ * Version 8.1.4.0
25
+ * 15-AUG -2022
26
26
*
27
27
* Automatic Update Information
28
- * <version_code>8.1.3.2 </version_code>
28
+ * <version_code>8.1.4.0 </version_code>
29
29
*/
30
30
31
31
using System;
@@ -68,7 +68,7 @@ public class AdKats : PRoConPluginAPI, IPRoConPluginInterface
68
68
{
69
69
70
70
//Current Plugin Version
71
- private const String PluginVersion = "8.1.3.2 ";
71
+ private const String PluginVersion = "8.1.4.0 ";
72
72
73
73
public enum GameVersionEnum
74
74
{
@@ -9690,7 +9690,7 @@ private void FetchPluginDocumentation()
9690
9690
{
9691
9691
try
9692
9692
{
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);
9694
9694
Log.Debug(() => "Plugin links fetched from backup location.", 1);
9695
9695
}
9696
9696
catch (Exception)
@@ -9709,7 +9709,7 @@ private void FetchPluginDocumentation()
9709
9709
{
9710
9710
try
9711
9711
{
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);
9713
9713
Log.Debug(() => "Plugin readme fetched from backup location.", 1);
9714
9714
}
9715
9715
catch (Exception)
@@ -9728,7 +9728,7 @@ private void FetchPluginDocumentation()
9728
9728
{
9729
9729
try
9730
9730
{
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);
9732
9732
Log.Debug(() => "Plugin changelog fetched from backup location.", 1);
9733
9733
}
9734
9734
catch (Exception)
@@ -9765,7 +9765,7 @@ private void FetchPluginDocumentation()
9765
9765
<h2 style='color:#DF0101;'>
9766
9766
You are running an outdated version! Version " + latestStableVersion + @" is available for download!
9767
9767
</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'>
9769
9769
Download Version " + latestStableVersion + @"!
9770
9770
</a><br/>
9771
9771
Download link below.";
@@ -40137,7 +40137,7 @@ private Boolean runDBSetupScript()
40137
40137
{
40138
40138
try
40139
40139
{
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);
40141
40141
Log.Debug(() => "SQL setup script fetched from backup location.", 1);
40142
40142
}
40143
40143
catch (Exception)
@@ -51282,7 +51282,7 @@ private ArrayList FetchAdKatsReputationDefinitions()
51282
51282
{
51283
51283
try
51284
51284
{
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);
51286
51286
Log.Debug(() => "Reputation definitions fetched from backup location.", 1);
51287
51287
}
51288
51288
catch (Exception)
@@ -51353,7 +51353,7 @@ private List<ASpecialGroup> FetchASpecialGroupDefinitions()
51353
51353
{
51354
51354
try
51355
51355
{
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);
51357
51357
Log.Debug(() => "Special group definitions fetched from backup location.", 1);
51358
51358
}
51359
51359
catch (Exception)
@@ -51562,7 +51562,7 @@ private List<ASQLUpdate> FetchSQLUpdates()
51562
51562
{
51563
51563
try
51564
51564
{
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);
51566
51566
Log.Debug(() => "SQL updates fetched from backup location.", 1);
51567
51567
}
51568
51568
catch (Exception)
@@ -53134,8 +53134,8 @@ public void CheckForPluginUpdates(Boolean manual)
53134
53134
{
53135
53135
try
53136
53136
{
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;
53139
53139
if (_pluginVersionStatus == VersionStatus.OutdatedBuild)
53140
53140
{
53141
53141
pluginSource = Util.ClientDownloadTimer(client, stableURL);
@@ -63007,7 +63007,7 @@ private Hashtable FetchAWeaponNames()
63007
63007
{
63008
63008
try
63009
63009
{
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);
63011
63011
_plugin.Log.Debug(() => "Weapon names fetched from backup location.", 1);
63012
63012
}
63013
63013
catch (Exception)
@@ -63642,7 +63642,7 @@ private Hashtable FetchWeaponDefinitions()
63642
63642
{
63643
63643
try
63644
63644
{
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);
63646
63646
Plugin.Log.Debug(() => "Weapon statistic definitions fetched from backup location.", 1);
63647
63647
}
63648
63648
catch (Exception)
0 commit comments