display

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

  1. xSoapers

    xSoapers Creeper

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

    Mr174 Baby Zombie

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

    RicardoMilos384 Witch

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

    NutXzG Slime

    Messages:
    95
    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.
     

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.