An advanced wardrobe plugin for Pocketmine-MP.
Advanced wardrobe plugin for Pocketmine-MP.
Command | Description | Permission |
---|---|---|
/wardrobe manage | Access your wardrobe. | betterwardrobe.manage.command |
/wardrobe equip | Equip a set. | betterwardrobe.equip.command |
/wardrobe view | View another players wardrobe. | betterwardrobe.view.command |
There are 9 sets, use betterwardrobe.slot.{setnumber}, so if I wanted a player to have access to the 5th slot, I'd grant the player the betterwardrobe.slot.5 permission, all players defaultly have access to the first slot.
use snare\BetterWardrobe\BetterWardrobe;
$instance = BetterWardrobe::getInstance();
Various methods can be found below:
$manager = $instance->getSessionManager();
$session = $manager->getSession(string $name);
$wardrobe = $session->getUsableWardrobe(); // returns a complex array, see code for details.
$wardrobe->addItem(int $setId, int $slot, Item $item, bool $swap = false); // again, confusing function, check session class.
Reach out on discord snare_gale
if having any issues or if you need help with configuration.
Version: 1.0.0
Downloads: 66
Updated: 9/2/2024
Supported API versions: 5.3.0 to 5.30.1
Categories: Fun, Miscellaneous, Mechanics, Informational, General
License: GPL-3.0