You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"Thanks for using UncomplicatedCustomEscapeZones v{Plugin.Instance.Version.ToString(3)} by {Plugin.Instance.Author}! Note that if you're using UCR, this plugin is the higher priority.",
116
-
ConsoleColor.Blue);
117
-
LogManager.Info(
118
-
"To receive support and to stay up-to-date, join our official Discord server: https://discord.gg/5StRGu8EJV",
119
-
ConsoleColor.DarkYellow);
117
+
if(Plugin.Instance.Config.EnableBasicLogs)
118
+
{
119
+
LogManager.Info(
120
+
$"Thanks for using UncomplicatedCustomEscapeZones v{Plugin.Instance.Version.ToString(3)} by {Plugin.Instance.Author}! Note that if you're using UCR, this plugin is the higher priority.",
121
+
ConsoleColor.Blue);
122
+
LogManager.Info(
123
+
"To receive support and to stay up-to-date, join our official Discord server: https://discord.gg/5StRGu8EJV",
case"InternalFaction" or "IF"whenEnum.TryParse(elements[3],outFactionfaction):
105
+
asCuffedByInternalFaction.TryAdd(faction,data);
106
+
break;
99
107
case"InternalTeam" or "IT"whenEnum.TryParse(elements[3],outTeamteam):
100
108
asCuffedByInternalTeam.TryAdd(team,data);
101
109
break;
@@ -110,7 +118,7 @@ when int.TryParse(elements[3], out int id) && UCR.TryGetCustomRole(id, out _):
110
118
{
111
119
boolokInt=int.TryParse(elements[3],out_);
112
120
LogManager.Warn(
113
-
$"Function SpawnManager::ParseEscapeRole[2](<...>) failed!\nPossible causes can be:\n- The source is not valid. Allowed: InternalTeam / IT / CustomRole / CR. Found: {elements[2]}\n- The target is not a CustomRole / InternalRole. Found: {elements[3]} (int32 parsable: {okInt})");
121
+
$"Function SpawnManager::ParseEscapeRole[2](<...>) failed!\nPossible causes can be:\n- The source is not valid. Allowed: InternalTeam / IT / InternalFaction / IF / CustomRole / CR. Found: {elements[2]}\n- The target is not a CustomRole / InternalRole. Found: {elements[3]} (int32 parsable: {okInt})");
114
122
break;
115
123
}
116
124
}
@@ -141,10 +149,13 @@ when int.TryParse(elements[3], out int id) && UCR.TryGetCustomRole(id, out _):
141
149
142
150
if(asCuffedByInternalTeam.TryGetValue(player.DisarmedBy.Team,outKeyValuePair<bool,object?>?teamValue)&&teamValueis not null)
143
151
returnteamValue;
152
+
153
+
if(asCuffedByInternalFaction.TryGetValue(player.DisarmedBy.Faction,outKeyValuePair<bool,object?>?factionValue)&&factionValueis not null)
154
+
returnfactionValue;
144
155
}
145
156
146
157
LogManager.Debug(
147
-
$"Returing default type for escaping evaluation of player {player.PlayerId} who's cuffed by {player.DisarmedBy?.Team}");
158
+
$"Returing default type for escaping evaluation of player {player.PlayerId} who's cuffed by team: {player.DisarmedBy?.Team} faction: {player.DisarmedBy?.Faction} role: {player.DisarmedBy?.Role}");
148
159
returndefaultValue;
149
160
150
161
// Local function to resolve entries with case-insensitive keys
0 commit comments