1: <?php
2: namespace aliuly\grabbag\api;
3:
4: use aliuly\grabbag\Main as GrabBagPlugin;
5: use aliuly\grabbag\api\GrabBagEvent;
6: use pocketmine\event\Cancellable;
7:
8: 9: 10:
11: class GbAddServerEvent extends GrabBagEvent implements Cancellable {
12: public static $handlerList = null;
13: private $serverId;
14: private $serverAttrs;
15: 16: 17: 18: 19:
20: public function __construct(GrabBagPlugin $plugin, $id, $attrs) {
21: parent::__construct($plugin);
22: $this->serverId = $id;
23: $this->serverAttrs = $attrs;
24: }
25: 26: 27: 28:
29: public function getId() {
30: return $this->serverId;
31: }
32: 33: 34: 35:
36: public function setId($id) {
37: $this->serverId = $id;
38: }
39: 40: 41: 42:
43: public function getAttrs() {
44: return $this->serverAttrs;
45: }
46: 47: 48: 49:
50: public function setAttrs($attrs) {
51: $this->serverAttrs = $attrs;
52: }
53: }
54: