Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Switching Servers With Plugins

Comments in 'Plugin Development' started by yungtechboy1, Feb 21, 2015.

  1. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    I looked through the API and Couldn't Find anything,

    But is there a way for a Plugin to Change a Players Server? So players can TP between Multiple Servers?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Read other threads. It is not possible to change it directly, but you can redirect/forward the connection.
    64FF00, EvolSoft and iksaku like this.
  3. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    How can you redirect/forward connections to random servers? Like LBSG or InPvP.
    EvolSoft and yungtechboy1 like this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I don't know how lifeboat did it. As for the "forward" I mentioned, it is something complex that requires a custom-written central server to manage connections. Refer to other threads.
    64FF00 likes this.
  5. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    If only we had BungeeCordPE
  6. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    I Have Looked at the RakLab and I Am so close to custom building it to allow IP Changes...
    Hopes It Works!
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    How do you expect to do so? Unless you redirect packets from the RakLib level directly? You can't do anything with RakLib from plugins ..
  8. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    Im Thinking Of 3 Ways At the Moment:

    1. Make A function to Forward the Packets To the New Server and Have the New Server Spoof its IP address and Send it to the Main Server

    2. Hava "Main" or "Swithing" Server Where all the IP Forwarding Will be Done.
    - So a Player Connect to 192.1.1.1:19132 and That would be the Switching Server. This Server will get the Middle Man for the Packets. Then It would get a Default Server to Forward the packets to. Then If they want to change server then The "Switching" would Forward the connection to another Port. Of Course this is a Huge Project. Im Not even sure Linux Could Handel This...

    3. Maybe Sending an Expected Packet to client,But with a Different Return IP address. Then Maybe MinecrafePE might starts sending the rest of the packets to the New IP address. But Because of Fire Walls this might not work.

    Number 2 Seems Promising But Its Still in thory as I am Still learning how raklib works.
  9. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    @TheLucyClub has a plugin that does this but she isn't sharing it :(
  10. TheLucyClub
    Offline

    TheLucyClub Banned

    Joined:
    Jan 31, 2015
    Posts:
    53
    Minecraft User:
    iCreepyKid
    HE isn't sharing it :mad:
  11. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    oh , ok lol so why did he share it with u? xD
  12. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    oh lol typo
  13. TheLucyClub
    Offline

    TheLucyClub Banned

    Joined:
    Jan 31, 2015
    Posts:
    53
    Minecraft User:
    iCreepyKid
    It's written for my server. It won't work on another one. An error would come up in the console.
  14. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    i can still modify it, can u send it
  15. TheLucyClub
    Offline

    TheLucyClub Banned

    Joined:
    Jan 31, 2015
    Posts:
    53
    Minecraft User:
    iCreepyKid
  16. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    OMG I DIDNT SEE THIS
    I can Just Modify this! Thanks!
  17. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    If you manage to get this working. Will it be public?
  18. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    Do you run Linux To run your Server???
  19. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    Yes, I Would Make it into an Application
    If it is easy and not time consuming then ill be free but if i have to Put more than 10 Hours to get it to work then I might charge.
    But it wont be expensive...
    RekkuzaRage likes this.
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    When I have time, I am going to work on something that does this, using a fourth method.
    First, I would work on the TurboControl plugin. It is a plugin that opens a TCP/IP server in another port and let custom clients connect to it using the TurboControl protocol. With the TurboControl protocol, you can manage the server in any ways, from seeing status and running commands on console to spawning real players (like specters) and controlling them.

    After that is finished, there can be a custom written server that accepts connections from players, let them do things like server choosing, and then spawn them to the target using the TurboControl connection (that is built during server startup).
    iJoshuaHD and RekkuzaRage like this.

Share This Page

Advertisement