Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 436 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 436 Bytes

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