IPlayer: remove circular dependency on Player

and remove useless Player->getPlayer()
This commit is contained in:
Dylan K. Taylor 2020-08-05 22:01:41 +01:00
parent 56ae3d01da
commit b725fcbdf2
2 changed files with 0 additions and 6 deletions

View File

@ -39,8 +39,6 @@ interface IPlayer extends ServerOperator{
public function setWhitelisted(bool $value) : void;
public function getPlayer() : ?Player;
public function getFirstPlayed() : ?int;
public function getLastPlayed() : ?int;

View File

@ -426,10 +426,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
return parent::getUniqueId();
}
public function getPlayer() : ?Player{
return $this;
}
/**
* TODO: not sure this should be nullable
*/