BetterWardrobe

An advanced wardrobe plugin for Pocketmine-MP.

BetterWardrobe

Advanced wardrobe plugin for Pocketmine-MP.

Features

  • Ability to store up to 9 full or partial armor sets.
  • Ability to manipulate and equip sets via a GUI or command.
  • Option to view the wardrobe of other players.
  • Customisable messages and permissions for each armor slot.

Installation

  1. Download plugin phar from here
  2. Add to your servers' plugin folder.
  3. Restart server.

Commands

CommandDescriptionPermission
/wardrobe manageAccess your wardrobe.betterwardrobe.manage.command
/wardrobe equipEquip a set.betterwardrobe.equip.command
/wardrobe viewView another players wardrobe.betterwardrobe.view.command

Set permissions

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.

API

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.

Support

Reach out on discord snare_gale if having any issues or if you need help with configuration.

Details

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

Producers

Collaborator