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

Leaderboard top money

Discussion in 'Help' started by Mochi, Apr 7, 2019.

  1. Mochi

    Mochi Baby Zombie

    Messages:
    113
    can I make a top money leaderboard plugin using this code :
    PHP:
    can I make a top money leaderboard plugin using this code
        
    public function createText(Vector3 $locationstring $type "money"$players null) {
            
    $typetitle $this->colorize($this->getConfig()->get("texts")[$type]);
            
    $id implode("_", [$location->getX(), $location->getY(), $location->getZ()]);
            
    $this->getServer()->getLevelByName($this->cfg->get("texts")["world"])->addParticle($particle = new FloatingTextParticle($locationC::GOLD "<<<<<>>>>>"$typetitle "\n" $this->getRankings($type)), $players);
            
    $this->particles[$id] = $particle;
        }

        public function 
    updateTexts() {
            foreach(
    $this->particles as $id => $text) {
                
    $type $this->texts->get($id);
                
    $typetitle $this->colorize($this->getConfig()->get("texts")[$type]);
                
    $text->setTitle(C::GOLD $typetitle "\n" $this->getRankings($type));
                
    $this->getServer()->getLevelByName($this->cfg->get("texts")["world"])->addParticle($text);
            }
        }
     
  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.