![]() |
Please remind me how to do cross-plugin communication. - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Please remind me how to do cross-plugin communication. (/thread-1217.html) |
Please remind me how to do cross-plugin communication. - bearbin - 08-13-2013 I've forgotten ![]() RE: Please remind me how to do cross-plugin communication. - xoft - 08-13-2013 local OtherPlugin=cPluginManager.Get():GetPlugin("OtherPluginName"); OtherPlugin:Call("FunctionName", Whatever, Basic, Parameters);Not sure about what parameters are exactly supported, I believe the basic ones (string, number, bool) only. Also not sure about return values, whether they are supported at all. RE: Please remind me how to do cross-plugin communication. - bearbin - 08-13-2013 Ooh return values are going to be an issue. Thanks though. Hopefully they are possible or are easy to do. RE: Please remind me how to do cross-plugin communication. - NiLSPACE - 08-13-2013 You can use objects as well as parameters. Also the return values are working normaly. I tried it with my WorldEdit plugin. RE: Please remind me how to do cross-plugin communication. - xoft - 08-13-2013 I dont think you can use tables, and multiple return values might be problematic. But who knows, maybe FakeTruth wrote it really well ![]() I'm guessing here without having actually read the code. RE: Please remind me how to do cross-plugin communication. - NiLSPACE - 08-13-2013 https://forum.cuberite.org/showthread.php?tid=579&pid=4853#pid4853 Read the last line in the first post ![]() RE: Please remind me how to do cross-plugin communication. - bearbin - 08-14-2013 Thanks, this was very helpful ![]() |