UHC/src/Ad5001/UHC/event/GameStopEvent.php

52 lines
1,016 B
PHP
Raw Normal View History

2016-06-10 05:19:40 +00:00
<?php
# _ _ _ _ _____
# | | | | | | |/ ____|
# | | | | |__| | |
# | | | | __ | |
# | |__| | | | | |____
# \____/|_| |_|\_____|
# The most customisable UHC plugin for Minecraft PE !
2016-06-10 14:00:18 +00:00
namespace Ad5001\UHC\event;
2016-08-20 12:44:28 +00:00
use pocketmine\event\Cancellable;
2016-06-10 14:00:18 +00:00
use Ad5001\UHC\event\UHCEvent;
2016-06-10 05:19:40 +00:00
use Ad5001\UHC\UHCGame;
use Ad5001\UHC\UHCWorld;
2016-08-20 07:24:06 +00:00
class GameStopEvent extends UHCEvent implements Cancellable {
2016-08-20 12:44:28 +00:00
protected $game;
protected $world;
protected $winner;
public static $handlerList = null;
2016-08-20 07:24:06 +00:00
public $cancelled = false;
2016-08-20 07:24:06 +00:00
2016-06-10 05:19:40 +00:00
public function __construct($game, $world, $winner) {
$this->game = $game;
$this->world = $world;
$this->winner = $winner;
}
2016-08-20 07:24:06 +00:00
2016-06-10 05:19:40 +00:00
public function getWorld() {
return $this->world;
}
2016-08-20 07:24:06 +00:00
2016-06-10 05:19:40 +00:00
public function getLevel() {
return $this->world;
}
2016-08-20 07:24:06 +00:00
2016-06-10 05:19:40 +00:00
public function getWinner() {
return $this->winner;
}
2016-08-20 07:24:06 +00:00
2016-08-20 12:44:28 +00:00
2016-06-10 05:19:40 +00:00
public function setWinner(Player $winner) {
$this->winner = $winner;
}
}