/KillStreak

A KillStreak plugin for pocketmine.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

KillStreak

  • KillSteak plugin for pocketmine.
  • Get 1 point when kill a player.
  • When you died the point return to 0.
  • There an API for developers.

How to Install?

  • Put the plugin to you're /plugins folder.
  • Restart you're server.
  • and done Enjoy.

API:

 <?php
 use Inaayat\KillStreak;

You can create an instance by doing:

$ks = KillStreak::getInstance();

check the player killstreak by:

$ks->getProvider()->getPlayerKSPoints($player);

add killstreak to player by:

$ks->getProvider()->addKSPoints($player, "1");

reset the player killstreak by:

$ks->getProvider()->resetKSPoints($player);

This API was made with 💓 by Inaayat.

Credit: JackMD.