Signed-off-by: Aaron Brock <TheMineBench@gmail.com>
This commit is contained in:
Aaron Brock 2015-07-01 22:11:57 -04:00
parent 0920c27040
commit 6d05e40df2
1 changed files with 0 additions and 5 deletions

View File

@ -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()))