1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-12 08:08:06 -05:00

more plugin tweaks, added console interface!

This commit is contained in:
RaidMax
2015-08-22 01:04:30 -05:00
parent 7ca0b654ac
commit d42a329097
24 changed files with 235 additions and 166 deletions

View File

@ -171,7 +171,15 @@ namespace SharedLibrary
{
String Match = M.Value;
String Identifier = M.Value.Substring(2, M.Length - 4);
String Replacement = Dict[Identifier].ToString();
Object foundVal;
Dict.TryGetValue(Identifier, out foundVal);
String Replacement;
if (foundVal != null)
Replacement = foundVal.ToString();
else
Replacement = "";
str = str.Replace(Match, Replacement);
}