roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
816 stars 130 forks source link

Capability disposal issue #565

Open K4ryuu opened 2 months ago

K4ryuu commented 2 months ago

Description

When you hotReload a plugin that has capability added (no static fields, initiated in Load, not at variable aswell) and you have a consumer plugin, when you hotReload the provider, it won't delete the capability, which results in that if you reload the user plugin aswell, it still use the functions which are NOT loaded in form of plugin.

Reproduce steps

KillStr3aK commented 1 month ago

613 might resolve this, requires further investigation