I'm... not sure you understand still?
You wrote inst.Trigger(inst.conditions.OnDisconnect)
You need to write inst.Trigger(C3.Plugins.AirConsole.Cnds.OnDisconnect)
...because the OnDisconnect method is at C3.Plugins.AirConsole.Cnds
, not inst.conditions
. I meant to say "I'm not sure where you got inst.conditions
from", because I don't believe that appears anywhere in the SDK samples or documentation.
Edit: oh right, I see that your code adds a inst.conditions
property. This is why trying to debug other people's code is difficult and time consuming. It looks like a mistake because the SDK addon coding samples never use that style, but your own addon coding style does this. I'm sorry my advice was wrong. But this is why I normally try not to get in to debugging other people's addons! Even code this simple is easy to get tripped up on if it's not your own code, and it only gets harder with more code.