so I’m trying to figure out this little code. I’ve seen that Lua uses ‘source’ without even having it somewhere in parameters of events.
public Main()
{
EventHandlers["playerDropped"] += new Action<string>(OnPlayerDropped);
}
private void OnPlayerDropped(string reason)
{
// how do I get source?
Debug.WriteLine("Player dropped, reason: " + reason);
}
I’m kinda curious how do I get ‘source’, which player has disconnected. Thanks