EpicArtz08999 / TopVoter

Shows a list of voters for your PocketMine-MP Server on a floating text!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TopVoter Build Status

Shows a list of voters for your PocketMine-MP Server on a floating text!

Preview:

Preview

After another person has voted:

Preview2

TopVoter API

As of commit e547488 TopVoter plugin offers an API that allows other plugins to access it's data and edit it.

Getting the list of voters:

TopVoter::getInstance()->getVoters();

Setting voters on the list:

TopVoter::getInstance()->setVoters($value);

Updating and resending the particles:

TopVoter::getInstance()->updateParticle();
TopVoter::getInstance()->sendParticle();

Using this piece of code, you can see what text will be shown on the particle. TopVoter::updateParticle() will return it to you:

$text = TopVoter::getInstance()->updateParticle();
echo $text;

About

Shows a list of voters for your PocketMine-MP Server on a floating text!

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%