Closed Marky-S closed 1 year ago
Your repro steps are a tad off ;) You also put the (minimal needed) code there to reproduce.
On that note, this works fine:
[EventHandler("onResourceStop")]
private static void OnResourceStop(string resourceName)
{
Debug.WriteLine($"Resource {resourceName} stopped");
}
Looking at your error, it seems like you're casting something else in your method that's not working out.
Closing this as it seems to be a user error, but we can reopen it when we're able to reproduce it.
What happened?
Can't handle server event
onResourceStop
There is a code:
Expected result
Correct method invocation
Reproduction steps
Importancy
Can't use this feature until fixed
Specific version
No response
Extra
No response