1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

update application version

ignore stat events of bots if they are ignored
limit max number of bot profiles to 18, greater than 18 wraps
prevent anti cheat from running on bot events
create localization folder on publish so copying over doesn't fail
include quick message mapping on webfront server history chat
make gravatar on profile not repeat
This commit is contained in:
RaidMax
2019-04-25 13:00:54 -05:00
parent 3488bc5d15
commit 01c94dad79
10 changed files with 78 additions and 71 deletions

View File

@ -267,7 +267,7 @@ namespace SharedLibraryCore
public override string ToString()
{
return $"{IP}-{Port}";
return $"{IP}:{Port}";
}
protected async Task<bool> ScriptLoaded()

View File

@ -269,6 +269,7 @@ namespace SharedLibraryCore
public static long ConvertLong(this string str)
{
str = str.Substring(0, Math.Min(str.Length, 16));
int maxBots = 18;
long id;
if (str.Length <= 11) // 10 numeric characters + signed character
@ -288,7 +289,7 @@ namespace SharedLibraryCore
if (!string.IsNullOrEmpty(bot))
{
// should set their GUID to the negation of their 1 based index (-1 - -18)
return -(Convert.ToInt64(bot.Substring(3)) + 1);
return -(Convert.ToInt64(bot.Substring(3)) + 1) % maxBots;
}
return long.MinValue;