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

Server Transfer

Discussion in 'Plugin Help' started by blckzombie, Mar 24, 2021.

  1. blckzombie

    blckzombie Creeper

    Messages:
    4
    Hey there!
    I want to transfer the players from my lobby-server to my minigames-server. But I don't know how I should do that. Okay, there is the option that every player types /transferserver ... but that would be really unprofessional, wouldn't it? Is there another way to do that? Maybe with plugins?
    I've found some, but they are all out-dated or just not working.
    Thanks for helping!
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    I can't tell if you're talking in coding-way or plugin-needed-way

    However, don't worry! I got both of your backs!

    Coding-Way:
    PHP:
    $player->transfer($ip$port);
    Need of Plugin-Way
    Good luck man I couldn't find any plugin
     
    wolfdale likes this.
  3. blckzombie

    blckzombie Creeper

    Messages:
    4
    Umm... I was talking about a plugin-way... I have absolutely no idea how to code plugins for pmmp. Maybe I should start thinking about coding. Is there any tutorial that shows me what software I should use and how I implement your "$player->transfer($ip, $port);" code?
     
    minijaham likes this.
  4. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    minijaham likes this.
  5. blckzombie

    blckzombie Creeper

    Messages:
    4
    The plugin is too old and doesn't work with current versions.
    I am able to execute the /transferserver command, but I want my players to klick on a slapper/npc/sign/item and they will be transferred to my minigames-server. Is there a way to do this?
     
    minijaham likes this.
  6. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Slapper seems to already have command execution support
     
    minijaham likes this.
  7. blckzombie

    blckzombie Creeper

    Messages:
    4
    I know... but what command should the slapper execute? When I tell the slapper to execute the command /transferserver it says "This command must be executed as a player"
     
    minijaham likes this.
  8. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Primus and minijaham like this.
  9. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Or /rca {player} command!!
     
  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.