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

Solved Remove black thing at back

Discussion in 'Development' started by xXNiceAssassinlo YT, Apr 28, 2018.

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    PHP:
        public function FloatingText(Player $player){
            
    $level $this->plugin->getServer()->getDefaultLevel();
            
    #WarZone
            
    $warzone = new FloatingTextParticle(new Vector3(10617739), TextFormat::DARK_RED "PvP is Enabled in warzone!"TextFormat::RED "            Warning:");
            
    $level->addParticle($warzone);
        }

     

    Attached Files:

    Muqsit likes this.
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Yeah, it's annoying but unfortunately you cannot remove it. I heard 1.2.14 is going to fix it.
     
    HyperxXxHound likes this.
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Thx
     
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    You can't but here is a tip: Spawn the particle very high so the player can't see it and then use \n.
    Hopefully the bug with a j appearing when you used \n is fixed so the players won't be able to understand what happened and the black thing isn't there.
     
  5. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    It will take bit long

    This should help
    PHP:
        public function FloatingText(Player $player){
            
    $level $this->plugin->getServer()->getDefaultLevel();
            
    #WarZone
            
    $warzone = new FloatingTextParticle(new Vector3(10617739), . " "TextFormat::DARK_RED "PvP is Enabled in warzone!"TextFormat::RED "            Warning:");
            
    $level->addParticle($warzone);
        }
     
  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.