+ Reply to Thread
Results 1 to 4 of 4

Thread: Calling another plugin in a server plugin

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Calling another plugin in a server plugin

    Is it possible to make a plugin calling another plugin in another extension in the server??
    If yes, how can I do that?
    Last edited by kenling; 07-23-2012 at 03:02 AM.

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,287
    Thanks
    81
    Thanked 1,094 Times in 1,083 Posts
    Yes, if the plugins are in separate extensions you have to use plugin interop though. getApi().callRoomPlugin, or getApi().callServerPlugin. See the PluginInterop code example.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I have found the code example in PluginInterop.

    So is there any method of "DatabasePlugin" to receive the "request" from PluginInterop?

  4. #4
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,287
    Thanks
    81
    Thanked 1,094 Times in 1,083 Posts
    DatabasePlugin is in the DatabaseWithJDBI code example. The method is "interop" and it returns an EsObject. It is MUCH simpler all around if you just have all your plugins in the same extension of course, and usually easier to maintain the software too.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts