Skip to content

Commit

Permalink
0.0.2a
Browse files Browse the repository at this point in the history
- Fixed the error command that was thrown when reloading tags.
  • Loading branch information
schwarper authored May 2, 2024
2 parents 8bd4f7e + 719ca52 commit eebe52c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cs2-tags/src/cs2-tag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Tags;
public partial class Tags : BasePlugin, IPluginConfig<TagsConfig>
{
public override string ModuleName => "Tag";
public override string ModuleVersion => "0.0.2";
public override string ModuleVersion => "0.0.2a";
public override string ModuleAuthor => "schwarper";

public TagsConfig Config { get; set; } = new TagsConfig();
Expand Down Expand Up @@ -45,6 +45,9 @@ public void OnConfigParsed(TagsConfig config)

public static void UpdatePlayerTags()
{
Instance.PlayerTagDatas.Clear();
Instance.PlayerToggleTags.Clear();

foreach (CCSPlayerController player in Utilities.GetPlayers())
{
Instance.PlayerTagDatas.Add(player.Slot, GetTag(player));
Expand Down Expand Up @@ -79,4 +82,4 @@ public static Tag GetTag(CCSPlayerController player)

return tags.FirstOrDefault(tag => tag.Key == "default").Value ?? new Tag();
}
}
}

0 comments on commit eebe52c

Please sign in to comment.