Skip to content

HQGamesBE/Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core

Buy Me a Coffee

Fake Blocks
/**
* @var \pocketmine\player\Player $player
* @var \pocketmine\world\Position $position
 */
$fakeblock = FakeBlockManager::getInstance()->create(\pocketmine\block\VanillaBlocks::GLASS(), $position, null); // NOTE: null = all users. 
$fakeblock->addViewer($player);
$fakeblock->removeViewer($player);
$fakeblock->getViewers();
FakeBlockManager::getInstance()->destroy($fakeblock);

Releases

Sponsor this project

Packages

Contributors

Languages