Skip to content

Evelire-Studio/ChestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy lightweight PMMP api for chests

Import: use chestapi\ChestAPI;

Methods:

  • ChestAPI::open(Position $chest, bool $playSound = true)
  • ChestAPI::close(Position $chest, bool $playSound = true)

Example:

use pocketmine\level\Position;
use chestapi\ChestAPI;
...
$chest = new Position(100, 100, 100, $player->getLevel());
ChestAPI::open($chest);

Download: Releases