use function of other server's plugin

Discussion in 'Development' started by Doxestic, Jun 19, 2020.

  1. Doxestic

    Doxestic Silverfish

    Messages:
    22
    hi, guys, I want to use a function from a plugin from another server how can I do it?
     
  2. Doxestic

    Doxestic Silverfish

    Messages:
    22
    Does no one know? :|
     
  3. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,357
    GitHub:
    robske110
    It's not exactly clear what you meant. Do you want to replicate functionality of a non-public plugin on another server? Do you want to communicate between plugins on your servers? Or something entirely different?
     
    Levi likes this.
  4. Doxestic

    Doxestic Silverfish

    Messages:
    22
    oh sorry for that I need to use a public function of other server's plugin but I can't I tried a lot but a can't find a way this is an example:
    server a:
    has a plugin with test command and when I run this command this plugin will use a send message function of the plugin of server b:
    server b:
    has a plugin with a public function sendMessag($msg){\* codes */};
    this function will send a message to the server( I only want to test then I make better functions)
     
  5. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    26
    GitHub:
    joaonunes12
    Use mysql, save the message in that and in another server make a task que verificaria o mysql
     
  6. Doxestic

    Doxestic Silverfish

    Messages:
    22
    oh I know this way but it takes a lot of ticks and my server has a lot of ag so this plugin should destroy my server:p

    if you have better way pls say
     
  7. Doxestic

    Doxestic Silverfish

    Messages:
    22
    88 seens but only 5 answer :facepalm::facepalm::facepalm:
     
  8. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    26
    GitHub:
    joaonunes12
    Use asynctask, maybe don't lag your server.
     
  9. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    26
    GitHub:
    joaonunes12
    https://www.php.net/manual/en/function.ftp-fget.php
    You can create a config with messages with this
     
  10. Doxestic

    Doxestic Silverfish

    Messages:
    22
    ahh pls check the title I want to use a function not only a message, for example, kick a player and send a message and send a MySQL query
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.