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:
    104
    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:
    800
    GitHub:
    minijaham
    You can as well use numeric IP
     

Share This Page

  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.