Things
Signed-off-by: Aaron Brock <TheMineBench@gmail.com>
This commit is contained in:
parent
0920c27040
commit
6d05e40df2
|
@ -54,7 +54,6 @@ class SingleGameArena implements Arena, Listener {
|
||||||
|
|
||||||
public function removePlayer(Player $player)
|
public function removePlayer(Player $player)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(($key = array_search($player, $this->players, true)) !== FALSE) {
|
if(($key = array_search($player, $this->players, true)) !== FALSE) {
|
||||||
unset($this->players[$key]);
|
unset($this->players[$key]);
|
||||||
}
|
}
|
||||||
|
@ -62,10 +61,6 @@ class SingleGameArena implements Arena, Listener {
|
||||||
$this->plugin->getServer()->getPluginManager()->callEvent(new ArenaQuitEvent($this, $player));
|
$this->plugin->getServer()->getPluginManager()->callEvent(new ArenaQuitEvent($this, $player));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function onJoin(PlayerJoinEvent $event)
|
public function onJoin(PlayerJoinEvent $event)
|
||||||
{
|
{
|
||||||
if ($this->canJoin($event->getPlayer()))
|
if ($this->canJoin($event->getPlayer()))
|
||||||
|
|
Loading…
Reference in New Issue