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 KillRateScoreEvent extends KillRateEvent implements Cancellable {
13: public static $handlerList = null;
14:
15: private $player;
16: private $type;
17: private $points;
18: private $money;
19: private $incr;
20: 21: 22: 23: 24: 25: 26: 27:
28: public function __construct(KillRatePlugin $plugin, Player $player, $col, $points = 0, $money = 0, $incr = 1) {
29: parent::__construct($plugin);
30: $this->player = $player;
31: $this->type = $col;
32: $this->points = $points;
33: $this->money = $money;
34: $this->incr = $incr;
35: }
36: 37: 38:
39: public function getPlayer() {
40: return $this->player;
41: }
42: public function getType() {
43: return $this->type;
44: }
45: public function setType($col) {
46: $this->type = $col;
47: }
48: public function getPoints() {
49: return $this->points;
50: }
51: public function setPoints($points) {
52: $this->points = $points;
53: }
54: public function getMoney() {
55: return $this->money;
56: }
57: public function setMoney($money) {
58: $this->money = $money;
59: }
60: public function getIncr() {
61: return $this->incr;
62: }
63: public function setIncr($incr) {
64: $this->incr = $incr;
65: }
66: }
67: