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

display

Discussion in 'General discussion' started by xSoapers, Feb 12, 2020.

  1. xSoapers

    xSoapers Spider

    Messages:
    6
    GitHub:
    xSoapers
    how to display kill and death in floating text
     
  2. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    What do you mean?
     
  3. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    Easy Just Follow Code On PvPlevels plugin and put Listener to run the floating text
     
  4. NutXzG

    NutXzG Baby Zombie

    Messages:
    132
    GitHub:
    NutXzG
    Here:
    PHP:
    <?php

    namespace YourNameSpace;

    use 
    pocmetmine\Server;
    use 
    pocketmine\plugin\PluginBase;
    use 
    pocketmine\Player;
    use 
    pocketmine\event\Listener;
    use 
    pocketmine\event\player\PlayerDeathEvent;

    class 
    YourClass extends PluginBase implements Listener{
        public function 
    onEnable(){
        
    $this->getServer()->getPluginManager()->registerEvents($this$this);
          }
        public function 
    onDeath(PlayerDeathEvent $ev){
        
    $p $ev->getEntity();
        
    $p->addTitle("Text");
        }
    }
     
  5. Fadhel

    Fadhel Witch

    Messages:
    68
    GitHub:
    dimbis
    she said display them into floating text not send title to the victims when they die.
     
  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.