Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace moch\TopMoneys;
- use pocketmine\scheduler\Task;
- class UpdateTask extends Task{
- public function __construct(Main $pl){
- $this->pl = $pl;
- }
- public function onRun($tick){
- $lb = $this->pl->getLeaderBoard();
- $list = $this->pl->getParticles();
- foreach($list as $particle){
- $particle->setText($lb);
- }
- $lb1 = $this->pl->getLeaderBoard1();
- $list1= $this->pl->getParticles1();
- foreach($list1 as $particle1){
- $particle1->setText($lb1);
- }
- $lb2 = $this->pl->getLeaderBoard2();
- $list2 = $this->pl->getParticles2();
- foreach($list2 as $particle2){
- $particle2->setText($lb2);
- }
- $lb3 = $this->pl->getLeaderBoard3();
- $list3 = $this->pl->getParticles3();
- foreach($list3 as $particle3){
- $particle3->setText($lb3);
- }
- $lb4 = $this->pl->getLeaderBoard4();
- $list4 = $this->pl->getParticles4();
- foreach($list4 as $particle4){
- $particle4->setText($lb4);
- }
- $lb5 = $this->pl->getLeaderBoard5();
- $list5 = $this->pl->getParticles5();
- foreach($list5 as $particle5){
- $particle5->setText($lb5);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement