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

View File

@ -54,7 +54,6 @@ class SingleGameArena implements Arena, Listener {
public function removePlayer(Player $player)
{
if(($key = array_search($player, $this->players, true)) !== FALSE) {
unset($this->players[$key]);
}
@ -62,10 +61,6 @@ class SingleGameArena implements Arena, Listener {
$this->plugin->getServer()->getPluginManager()->callEvent(new ArenaQuitEvent($this, $player));
}
public function onJoin(PlayerJoinEvent $event)
{
if ($this->canJoin($event->getPlayer()))