02-01-2013, 06:04 AM
Well, let me question this once again. If you want to call plugin A's function F, what do you do? Something along the lines of:
Why not do this instead?
No need for a cPlugin object, less code to write... And if MCServer ever supported other scripting languages, it could actually be made to work cross-language. Yuck.
Code:
local PluginA = PluginManager:GetPlugin("PluginA");
PluginA:Call("FnName", Param1, Param2);
Why not do this instead?
Code:
PluginManager:CallPluginFunction("PluginA", "FnName", Param1, Param2);
No need for a cPlugin object, less code to write... And if MCServer ever supported other scripting languages, it could actually be made to work cross-language. Yuck.