forked from jaylac2000/ScoreHud-Addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BravoClanAddon.php
42 lines (36 loc) · 1.69 KB
/
BravoClanAddon.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @name BravoClanAddon
* @version 1.1
* @main JackMD\ScoreHud\Addons\BravoClanAddon
*/
namespace JackMD\ScoreHud\Addons
{
use Itzdvbravo\BravoClan\Main;
use JackMD\ScoreHud\addon\AddonBase;
use pocketmine\Player;
class BravoClanAddon extends AddonBase {
/** @var BravoClan */
private $BravoClan;
public function onEnable(): void{
$this->BravoClan = $this->getServer()->getPluginManager()->getPlugin("BravoClan");
}
/**
* @param Player $player
* @return array
*/
public function getProcessedTags(Player $player): array{
return [
"{clan}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan"),
"{clan_xp}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_xp"),
"{clan_next_lvl}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_next_lvl"),
"{clan_kills}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_kills"),
"{clan_deaths}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_deaths"),
"{clan_members}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_members"),
"{clan_max_members}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "clan_max_members"),
"{member_kills}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "member_kills"),
"{member_deaths}" => $this->BravoClan->scorehudAddon(strtolower($player->getName()), "member_deaths"),
];
}
}
}