void OnPluginLoaded(Plugin PluginName) { }
or
void OnPluginLoaded(PluginName) { }
???
[DOUBLEPOST=1423979602][/DOUBLEPOST]Neither works here xD
C# OnPluginLoaded(Plugin)?
Discussion in 'Rust Development' started by TheRotAG, Feb 15, 2015.
-
Works exactly how the docs say it does.
Code:void OnPluginLoaded(Plugin plugin) { Puts("{0} LOADED", plugin.Title); }
-
Didnt found that in Docs... here the CSharp section is blank for API Hooks. http://docs.oxidemod.org/?csharp#plugin-hooks
[DOUBLEPOST=1424049709,1423991320][/DOUBLEPOST]Well.... seems like its impossible to use this method to detect when another plugin is loaded... -
What do you mean, I even tested that it works.
-
Who do you check if another plugin besides yours loaded with that function? -
You could do an if check on the title for one. If your plugin needs to wait for another you can just use plugin find and see if it returns null.