1 | <?php |
||
15 | class PlayerBountyEvent extends PlayerEvent implements Cancellable |
||
16 | { |
||
17 | public const ENABLE_BOUNTY = 0; |
||
18 | public const PLUS_GOLD = 1; |
||
19 | |||
20 | /* @var int $gold */ |
||
21 | private $gold; |
||
22 | |||
23 | /* @var int $bounty */ |
||
24 | private $bounty; |
||
25 | |||
26 | /** |
||
27 | * PlayerBountyEvent constructor. |
||
28 | * |
||
29 | * @param Player $player |
||
30 | * @param int $gold |
||
31 | * @param int $bounty |
||
32 | */ |
||
33 | public function __construct(Player $player, int $gold, int $bounty) |
||
39 | |||
40 | /** |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getGold(): int |
||
47 | |||
48 | /** |
||
49 | * @return int |
||
50 | */ |
||
51 | public function getType(): int |
||
55 | } |
||
56 |