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

players online slapper

Discussion in 'Plugin Help' started by MrJackx5, May 11, 2020.

  1. MrJackx5

    MrJackx5 Spider

    Messages:
    9
    is there a command in slapper where i can make the player count appear with a floating text
     
  2. NutXzG

    NutXzG Baby Zombie

    Messages:
    132
    GitHub:
    NutXzG
    Hmmm I know FlaotingParticle
    PHP:
    /** var $level Level **/
    /** var $x, $y, $z Postion **/
    /** var $server Server **/
    $online count($this->getServer()->getOnlinePlayers());
    $max_online $server->getMaxPlayer();
    $level->addPraticle(new pocketmine\level\praticle\FloatingTextParticle(new pocketmine\math\Vector3($x$y$z),  "Player online\n$online/$max_online");
    This code can't update number players real
    use in Task
     
  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.