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

Help with transferring servers (form api)

Discussion in 'General discussion' started by NamelessLeaf, Feb 1, 2021.

  1. NamelessLeaf

    NamelessLeaf Creeper

    Messages:
    2
    GitHub:
    namelessleaf
    Hi, i have been coding a form plugin for my server and in the case 1 part of my form how to i make a player transfer servers ?
     
  2. IvanCraft623

    IvanCraft623 Baby Zombie

    Messages:
    105
    GitHub:
    IvanCraft623
    Use:
    PHP:
    case 1:
        
    $player->transfer("server.IP"/*server_Port (int)*/);
    break;
    Example:
    PHP:
    case 1:
        
    $player->transfer("endergames.ddns.net"25331);
    break;
     
    minijaham and NamelessLeaf like this.
  3. NamelessLeaf

    NamelessLeaf Creeper

    Messages:
    2
    GitHub:
    namelessleaf
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    You can as well use numeric IP
     
  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.