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

Join randomly

Comments in 'Plugin Development' started by TeamCraft, Jul 4, 2015.

  1. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    Hello everyone,

    I need a plugin, I guess it is simple to made (for everyone exept me :p ).
    When you enter play.teamcraft.be:19132 I want users to get transferred to a randomly server onjoin, directly.
    Using FastTransfer, the plugin which shogcip made.

    A player needs to go to w1.teamcraft.be, w2.teamcraft.be, w3.., w4.., etc etc.
    I think I will build 50 diferent servers. If It is possible, a .yml for me to enter all those IPs.

    Is there anyone who could help?
    Any help is very appreciated! :)
  2. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    function onPlayerJoin, if im right.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    check the average then transfer?
  4. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    LDX likes this.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is more appropriate to use PlayerLoginEvent since players should be transferred before building terrain screen.
    Andrey Nazarchuk likes this.
  6. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    Loadbalancer does not seems to create a config.yml file
  7. InusualZ
    Offline

    InusualZ Active Member Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    218
    Plugins:
    1
    Minecraft User:
    Inusu4lZ
    Since I can't post plugins here I have to release it(It's a really simple plugin). Check out you Inbox. @TeamCraft
    Last edited: Jul 5, 2015
  8. Andrey Nazarchuk
    Offline

    Andrey Nazarchuk Active Member

    Joined:
    Dec 30, 2013
    Posts:
    332
    Minecraft User:
    digita1eclipse
    Then take it out of the source folder.
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PlayerLoginEvent is better, although PlayerPreLoginEvent is also OK.
    In case you don't know, both events exist.
    Legoboy0215 likes this.
  10. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    I already made a custom plugin myself, but it loads the world before "redirecting", can someone make a thing that a redirect directly using fasttransfer?
  11. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    ChalkPE did an excellent job with GoAwayAnna. You might be able to modify his code to do what you want (It only supports a single alternate IP).
    CrazedMiner likes this.
  12. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PlayerLoginEvent is fired before chunks are sent. PlayerJoinEvent is fired when the player is almost ready.
    CrazedMiner likes this.
  14. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    Anyone can program a simple plugin? Cause I tried many times but they all crash...
    Just when you join, dont load chunks, directly transfer to a server from Array().
    And better, the server which is gotten from file_gets_content();

    Many thanks.
  15. TeamCraft
    Offline

    TeamCraft New Member

    Joined:
    May 17, 2014
    Posts:
    36
    Nevermind.
  16. CookieSteve
    Offline

    CookieSteve Active Member

    Joined:
    Apr 22, 2014
    Posts:
    132
    Minecraft User:
    iStrqfeChris
    Do you still need this? I could make a simple plugin

Share This Page

Advertisement