mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Server: add typehint to addPlayer()
This commit is contained in:
parent
6954bfac4b
commit
eeaf75ac85
@ -2317,7 +2317,7 @@ class Server{
|
||||
unset($this->loggedInPlayers[$player->getRawUniqueId()]);
|
||||
}
|
||||
|
||||
public function addPlayer($identifier, Player $player){
|
||||
public function addPlayer(string $identifier, Player $player){
|
||||
$this->players[$identifier] = $player;
|
||||
$this->identifiers[spl_object_hash($player)] = $identifier;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user