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

Solved Transfert Server

Discussion in 'Development' started by Notjblus, Jun 27, 2019.

  1. Notjblus

    Notjblus Spider Jockey

    Messages:
    28
    GitHub:
    JblusItsMe
    PHP:
    public function onInteract(PlayerInteractEvent $event) {

            
    $player $event->getPlayer();

            if(
    $player->getInventory()->getItemInHand()->getCustomName() === "§o§6- §eSkyWars §6-") {
                
    // code
            
    }
        }
    How to perform a server transfer from a PlayerInteractEvent, how can I perform this one?
     
  2. Matrox

    Matrox Slime

    Messages:
    92
    GitHub:
    MatroxMC
    PHP:

    $player
    ->transfer("//ip"19132);
     
  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.