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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user