(4.0.0 - 4.21.1) 1.2.0 (4.0.0 - 4.21.1) 1.1.1 (4.0.0 - 4.21.1) 1.1.0 (4.0.0 - 4.21.1) 1.0.0
For any problems, you can reach me at "Reach ME" tab !
Command | Aliases | Permission | Default | Description |
---|---|---|---|---|
/capes |
capeslocker.command.capes | true |
Open your capes locker menu ! | |
/mcapes <player> [cape id] [lock|unlock] |
mcapes |
capeslocker.command.managecapes | op |
Manage capes of a player |
/playerscapescleaner |
capeslockers.command.playerscapescleaner | op |
WARNING ! This command remove all undefined capes in 'capes.json' from capes lockers of players. |
Firstly, cape must be a PNG file of 64x32 pixels. Capes file is the property of a vanilla minecraft bedrock cape.
Put the file in the plugin folder located in plugins_data
After that, go to the file capes.json
and save the desired cape.
"cape_identifier" : {
"name": "My awesome cape",
"description": "This cape is part of a tutorial for the CapesLocker plugin!",
"cape": "file_name",
"default": true
}
name
=> Cape name show in menu
description
=> Cape description show in menu
cape
=> Name of the cape file (without extension .png)
default
=> Define if this cape is owned by all players
Colors | Meaning |
This is a template, you do not have to use it. |
---|---|---|
Red | Front | |
Yellow | Back | |
Cyan | Left side | |
Green | Right side | |
Blue | Top side | |
Pink | Bottom side |
Capes can be locked and unlocked by 3 ways :
Permissions :
Using permissions, you can lock or unlock capes.
Permissions are like this : capeslocker.cape.cape_identifier
"cape_identifier" is define in "capes.json"
In-game Menu :
Players who have capeslocker.command.managecape
permission or OP players, can lock or unlock cape of other players.
Plugins : CapesLocker has an API for developers. You can see it in detail in the "For developers" tab !
---
#
# __ __ ___ ____ _ _____ _ _
# \ \ / / |__ \ / __ \ (_)/ ____| | (_)
# \ \ / /__ _ __ _ __ ___ ) | | | |_ _ _| (___ | | ___
# \ \/ / _ \ '__| '__/ _ \ / /| | | | | | | |\___ \| |/ / |
# \ / __/ | | | | __// /_| |__| | |_| | |____) | <| |
# \/ \___|_| |_| \___|____|\____/ \__,_|_|_____/|_|\_\_|
#
# Do you have a problem ?
#
# Discord (en) : https://discord.gg/P8R4WhARrY
# Discord (fr) : https://discord.gg/DnmRbAxMbN
# Time in seconds
cape_cooldown: 10
# {cooldown} Amout of time you must wait before set a new cape
cooldown_message: "ยงcYou must wait {cooldown} seconds between every cape changed"
# {cape} The cape name
cape_equiped_message: "You equiped {cape}"
# {cape} The cape name
locked_cape_message: "You must unlock {cape} before use it"
menu_title: "Capes list"
menu_body: "There is some capes you can unlock and use !"
...
This plugin allow you to interact with locker. Here is some function you can use in your code.
You can get the plugin with CapesLocker::getInstance()
If you want more detail, you can check the main file of this plugin
/**
* Return all capes
* @return array
*/
getCapes()
/**
* Return all default capes
* @return array
*/
getDefaultCapes()
/**
* Return cape info
* @param string $cape_id
* @return NULL|array
*/
getCapeById(string $cape_id)
/**
* Return unlocked player's capes (default capes isn't include)
* @param Player $player Player to get his capes
* @return array
*/
getPlayerCapes($player)
/**
* Return permitted player's capes (default capes isn't include)
* @param Player $player Player to get his capes
* @return array
*/
getPlayerPermittedCapes($player)
/**
* Get alls players capes (default capes and permitted capes isn't include)
* @return array
*/
getPlayersCapes()
/**
* Unlock a cape for a specific player
* @param Player $player Player to unlock a cape
* @param string $cape_id The ID of the cape to unlock
* @return void
*/
unlockCape( $player, $cape_id )
/**
* lock a cape for a specific player
* @param Player $player Player to lock a cape
* @param string $cape_id The ID of the cape to lock
* @return void
*/
lockCape( $player, $cape_id)
/**
* Unlock a cape for a specific player
* @param Player $player Player to equip the cape with
* @param string $cape_id The ID of the cape to be equipped
* @return void
*/
setPlayerCape( $player, $cape_id = null )
/**
* Check if a player have a specific cape
* @param Player $player Player to check their capes
* @param string $cape_id The ID of the cape to check
* @return bool
*/
hasCape( $player, $cape_id )