How would I get a PluginBase of a plugin on another server?

Discussion in 'Development' started by Rim, Jan 8, 2020.

  1. Rim

    Rim Silverfish

    Messages:
    15
    GitHub:
    boomyourbang
    Basically I'm trying to make my Core plugin able to communicate with the same plugin on different servers in my network. I'm wondering how I could pull this off? Querying only seems to let me get data such as player count and version, etc. Would I have to use SQL?
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,449
    GitHub:
    jasonwynn10
    You can’t unless the servers are the same server
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,933
    GitHub:
    sof3
    Rule of thumb for concurrency: You don't send data by sharing data. You share data by sending data.

    If a plugin requires some data from another server, send a message to the other server and let the other server reply with the required information.
    If a plugin wants to modify some data on another server, send a message to the other server and let the other server modify the data upon the request.

    SQL is not used for communication. It is for data storage. It is an abuse to use SQL for synchronizing data between servers, and using something in a way it's not designed to would usually result in a lot of trouble.
     
  4. Provsnoobgaming

    Provsnoobgaming Witch

    Messages:
    73
    GitHub:
    provsalt
    You might want to use a proxy.Like waterdog or gophertunnel for that.
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,933
    GitHub:
    sof3
    Proxy has no direct relationship with communication between servers.
     
  6. Provsnoobgaming

    Provsnoobgaming Witch

    Messages:
    73
    GitHub:
    provsalt
    There is a plugin for waterdog to communicate with servers.
    https://github.com/Alemiz112/StarGate
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,933
    GitHub:
    sof3
    This has nothing to do with waterdog being a proxy. This is an extra feature of waterdog independent of being a proxy.
     
  8. Enrico Angelon

    Enrico Angelon Spider Jockey

    Messages:
    38
    GitHub:
    herryyt
    You can share your data by doing HTTP requests using asyn tasks api
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,933
    GitHub:
    sof3
    then you first need an HTTP server that supports this logic somewhere.
     
  10. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,933
    GitHub:
    sof3
    then you first need an HTTP server that supports this logic somewhere.
     

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.