1: <?php
2: namespace aliuly\killrate\api;
3:
4: use aliuly\killrate\Main as KillRatePlugin;
5: use pocketmine\event\Cancellable;
6: use pocketmine\Player;
7: use aliuly\killrate\api\KillRateEvent;
8:
9: 10: 11:
12: class KillRateBonusScoreEvent extends KillRateEvent implements Cancellable {
13: public static $handlerList = null;
14:
15: private $player;
16: private $money;
17: 18: 19: 20: 21: 22:
23: public function __construct(KillRatePlugin $plugin, Player $player, $money = 0) {
24: parent::__construct($plugin);
25: $this->player = $player;
26: $this->money = $money;
27: }
28: 29: 30:
31: public function getPlayer() {
32: return $this->player;
33: }
34: public function getMoney() {
35: return $this->money;
36: }
37: public function setMoney($money) {
38: $this->money = $money;
39: }
40: }
41: