PlayMCOnline/Chest Keys
From SupaHam
Chest Keys are chests that require keys to be "opened". Each chest key is assigned it's own unique id. Almost every property belonging to a chest key can be configured through the commands.
Configuration
Tip: Before starting to mess around with a configuration file, please head over here and familiarise yourself.
Configuration | Value | Description |
---|---|---|
enabled-worlds | List<String> | A list of worlds this module should be enabled for. |
chests.<world>.<id> | N/A | This a configuration section for a chest key, where <id> is replaced with the id of a chest key. |
chests.<world>.<id>.cooldown-duration | Integer | Duration (in seconds) that a player should be on cooldown for after interacting with this chest key. |
chests.<world>.<id>.location | Location | The location of the chest block. |
chests.<world>.<id>.key | ItemStack | The exact ItemStack required to open this chest key. |
chests.<world>.<id>.cooldowns | Map<String, Long> | String is the player name. Long is the milliseconds that the player's cooldown will expire. |
Commands
Tip: Confused with command syntax or want to make the most out of them? Head over here for help.
Parent | Command | Permission | Aliases | Description |
---|---|---|---|---|
chestkeys | ck | Chest keys management command. | ||
chestkeys | create [-h] <id> [location] | pmco.cmd.chestkeys.create | c | Creates a chest key. The <id> argument is the id to assign to the chest. The [location] argument is the location of the chest, if no argument is provided it will attempt to default to a chest block the command sender is looking at. The -h flag will make the chest's key the item in the command sender's hand. |
chestkeys | create [-h] <id> [location] | pmco.cmd.chestkeys.create | c | Creates a chest key. The <id> argument is the id to assign to the chest. The [location] argument is the location of the chest, if no argument is provided it will attempt to default to a chest block the command sender is looking at. The -h flag will make the chest's key the item in the command sender's hand. |