Plugin doesn't show two or more text particles

Discussion in 'Development' started by Mespeczek, Mar 14, 2019.

  1. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
  2. wolfdale

    wolfdale Zombie

    Messages:
    252
  3. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    @wolfdale
    Yes. The second location is near the yellow building (it's a duck).
     
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    636
    PHP:
        public function teksthub(){
            
    $teksta "§f§l• §aWitaj na Kres§4MC§a!\n§f§l• §aZarejestruj się: /register <hasło>\n§f§l• §aZaloguj się: /login <hasło>";
            
    $tekstb "§f§l• §aHOP DO PORTALU!\n§f§l• §aI JESTEŚ NA HUBIE";
            
    $hub $this->getServer()->getLevelByName("world");
            
    $hub->addParticle(new \pocketmine\level\particle\FloatingTextParticle(new Vector3(-179.542.528.5), $tekstb"§a... Test"));
            
    $hub->addParticle(new \pocketmine\level\particle\FloatingTextParticle(new Vector3(-175.542.539.5), $teksta"§a... Test2"));
        }
     
  5. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
  6. Muqsit

    Muqsit Wither Skeleton Verified

    Messages:
    1,483
    GitHub:
    muqsit
    Which version of MCPE are you running? What you're talking about is a client sided feature that was added in 1.7 IIRC.
     
  7. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    636
    Okay, the function is not called, that's what I can only say.
     

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.