1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to connect a plugin to external websites?

Discussion in 'Plugin Help' started by Indexfire, Dec 13, 2016.

  1. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    Like how do you make a plugin like buying a rank on servers and it registers in game? Like when you buy something on a store externally you get it in game.


    Eg: buy VIP on a store then you get this chat prefix in game
    [VIP]Indexfire

    How would i do that?
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Call online APIs on those websites when something happens in-game?
    This is more related to web development, not plugin development. What you need to know in plugin development is Utils::getURL() and the most basic use of AsyncTask.
     
    HimbeersaftLP and Jack Noordhuis like this.
  3. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    Uhhh i think i need to learn php i have no idea what this means
     
  4. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Use BuyCraft, it works fine. Until you have a solid understanding of PHP and the PocketMine API you should start coding something a little easier though - it sounds like you want to run before you can walk!
     
  5. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    I want to code minigame plugins for servers, not mess around with my friends on a private server- which is why im so rushed :/
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    This is something that takes even more time and experience, and this is something that you cannot rush. You can't expect to be able to compose a great symphony in a few months when the bare knowledge you have to music is to sing a few simple tunes.
     
  7. kaliiks

    kaliiks Zombie

    Messages:
    250
    Use MySQL Database to do this
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Elaborate. MySQL is just one of the many tools you can use to achieve this. You could as well not touch MySQL at all in your plugin, and just post HTTP requests to the external website that has an API for doing whatever stuff you want to do.
     
  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.