mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
IPlayer: remove circular dependency on Player
and remove useless Player->getPlayer()
This commit is contained in:
parent
56ae3d01da
commit
b725fcbdf2
@ -39,8 +39,6 @@ interface IPlayer extends ServerOperator{
|
|||||||
|
|
||||||
public function setWhitelisted(bool $value) : void;
|
public function setWhitelisted(bool $value) : void;
|
||||||
|
|
||||||
public function getPlayer() : ?Player;
|
|
||||||
|
|
||||||
public function getFirstPlayed() : ?int;
|
public function getFirstPlayed() : ?int;
|
||||||
|
|
||||||
public function getLastPlayed() : ?int;
|
public function getLastPlayed() : ?int;
|
||||||
|
@ -426,10 +426,6 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
return parent::getUniqueId();
|
return parent::getUniqueId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPlayer() : ?Player{
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: not sure this should be nullable
|
* TODO: not sure this should be nullable
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user