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

Execute commands from website?

Discussion in 'Development' started by azk_, Dec 10, 2017.

  1. azk_

    azk_ Spider Jockey

    Messages:
    49
    How to execute in-game commands as console from website?
    I want to execute commands with a button on a website.
    I would be grateful if someone helps. Thanks..
     
    DanielYTK likes this.
  2. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    This is nothing related to plugin-making. I don't even think this is even possible.
     
    azk_ likes this.
  3. ItzAribie

    ItzAribie Spider Jockey

    Messages:
    41
    It's possible look buycraft.
    It's possible use socket and asynctask
     
    kazuya and azk_ like this.
  4. azk_

    azk_ Spider Jockey

    Messages:
    49
    I saw examples of this and its possible.
    I want 1 example code, i can do the rest
     
  5. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    You have a point, hmmm Buycraft. Maybe look into their source code.
     
    azk_ likes this.
  6. azk_

    azk_ Spider Jockey

    Messages:
    49
    Please. I just want a simplified example :(
    If you do not know how to do it, thank you for your reply.
     
  7. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Learning is the great way to go. :)
     
  8. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    You can use Rcon class.
     
  9. azk_

    azk_ Spider Jockey

    Messages:
    49
    I just want 1 sample code..
     
  10. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Just check how RCON works.. You can connect to the socket if I'm correct..
     
    CaptainDuck likes this.
  11. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Why does everyone say "use socket" nowadays? This is as meaningless as saying "use the Internet".
    Everything over the Internet uses a socket. A webpage connection uses an (HTTP/SSL) TCP socket. MCPE ues a UDP socket. Connecting to a VPS uses an (SSH) TCP socket. Everything is a socket.
     
    XenialDan and HimbeersaftLP like this.
  12. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    In addition, AsyncTask is for something that runs short. If you want to create a socket that keeps the connection alive, you should be using a Thread.
     
  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.