PlayerCreationEvent: Remove useless crap from constructor

This commit is contained in:
Dylan K. Taylor
2018-07-21 18:42:18 +01:00
parent b93318b2cf
commit a86d3fe071
2 changed files with 4 additions and 18 deletions

View File

@ -131,7 +131,7 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
}
public function openSession(string $identifier, string $address, int $port, int $clientID) : void{
$ev = new PlayerCreationEvent($this, Player::class, Player::class, $address, $port);
$ev = new PlayerCreationEvent($this, $address, $port);
$this->server->getPluginManager()->callEvent($ev);
$class = $ev->getPlayerClass();