Good day all.
So I have a plugin I am using but it isn't working correctly so I have gone through the code (with my little coding knowledge) and have a few questions regarding some lines in the plugin. The plugin is for rust.
So first one is the following code:
void OnPlayerInt(BasePlayer player)
So my question is on this. From the docs I read that this is called on player initialization. Is this only called when they first connect or every time the console logs "player has entered the game"?
The second line of code is this:
timer.In(1, () => OnPlayerInit(player))
What does this line mean exactly? I couldn't figure it out yet so was wondering if someone can please help me understand the above lines so I can better troubleshoot the plugin and learn how plugins work so I may one day create my own.
Thank you in advance
So I have a plugin I am using but it isn't working correctly so I have gone through the code (with my little coding knowledge) and have a few questions regarding some lines in the plugin. The plugin is for rust.
So first one is the following code:
void OnPlayerInt(BasePlayer player)
So my question is on this. From the docs I read that this is called on player initialization. Is this only called when they first connect or every time the console logs "player has entered the game"?
The second line of code is this:
timer.In(1, () => OnPlayerInit(player))
What does this line mean exactly? I couldn't figure it out yet so was wondering if someone can please help me understand the above lines so I can better troubleshoot the plugin and learn how plugins work so I may one day create my own.
Thank you in advance