Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Plugin #89

Open
Alemiz112 opened this issue Apr 3, 2019 · 3 comments
Open

Support for Plugin #89

Alemiz112 opened this issue Apr 3, 2019 · 3 comments

Comments

@Alemiz112
Copy link

Hi,
I made pocketmine plugin called SlivockyStats!
I want to ask If you can add some code to support my rating system and Ranks ?

https://github.com/Alemiz112/SlivockyStats

Thanks

@xBeastMode
Copy link
Contributor

interesting. how would i do that?

@Alemiz112
Copy link
Author

If someone die, kill someone, won it will save that datas to config. You will make simple function whitch I will be able to call from my plugin, like:

$data = $this->plugin->getServer()->getPluginManager()->getPlugin('HungerGames')->getData(0);

It must be returned as array to make me able to create Stats:

arsort($data); foreach ($data as $name => $kills) {}

You can find more here: My HungerGames

You can too add there option to XP Ranks:
$ranks = $this->plugin->getServer()->getPluginManager()->getPlugin("SlivockyStats"); if ($ranks !== null){ $ranks->provider->addXP($killer, 2); }

@Alemiz112
Copy link
Author

Artulloss why that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants