use/Commands
Player Commands
/lchs [options]
Description
Turns the the block the user is currently looking at into a KeyBlock. Any switches attached to this block will be activated when the user clicks the block.
Required Permissions
/lchs
hiddenswitch.user.command
/lchs user/me
hiddenswitch.user.lockuser
/lchs key
hiddenswitch.user.lockitem
Options
KeyBlocks can optionally be locked to a user and/or a specific held item; meaning the block will only function for users who match the lock criteria.
me
If set uses the current user for the user lock. Only the current player will be able to activate the KeyBlock. :
/lchs me
user:<username>
If set sets the user lock to the username specified. Only the specified user will be able to activate this KeyBlock.
/lchs user:Testuser
key[:item]
Can be used as either key:item to set the "key" item to the item specified, or simply key which will set the "key" item to the item currently being held by the command user.
/lchs key /lchs key:gold_sword
Note, as of v0.1.0 time when setting the "key" item, the proper item name (including underscores) must be used.
Examples
Username: Luphie
Item Held: bone
Command: /lchs
Created Keyblock:
Bound user | Bound item |
---|---|
none | none |
Username: Luphie
Item Held: bone
Command: /lchs me
Created Keyblock:
Bound user | Bound item |
---|---|
Luphie | none |
Username: Luphie
Item Held: bone
Command: /lchs key
Created Keyblock:
Bound user | Bound item |
---|---|
none | bone |
Username: Luphie
Item Held: bone
Command: /lchs key:gold_sword
Created Keyblock:
Bound user | Bound item |
---|---|
Luphie | gold_sword |
Username: Luphie
Item Held: bone
Command: /lchs user:testuser key
Created Keyblock:
Bound user | Bound item |
---|---|
testuser | bone |
Admin Commands
/lchsreload
Description
Reloads the config.yml file to allow changing settings without restarting or reloading the server.
Required Permissions
/lchsreload
hiddenswitch.admin.reload
Examples
From Player: /lchsreload
From Console: lchsreload
/lchsreloaddb
Description
Reloads the KeyBlock database. WARNING This will delete any unsaved KeyBlock changes!
Required Permissions
/lchsreloaddb
hiddenswitch.admin.reloaddb
Examples
From Player: /lchsreloaddb
From Console: lchsreloaddb
/lchsreloadlang
Description
Reloads the language file (default is eng.yml) to allow changing messages without restarting or reloading the server.
Required Permissions
/lchsreloadlang
hiddenswitch.admin.reloadlang
Examples
From Player: /lchsreloadlang
From Console: lchsreloadlang
/lchssave
Description
Saves all staged KeyBlock changes to the database, can be configure to autosave every # changes in the configuration file.
Required Permissions
/lchssave
hiddenswitch.admin.save
Examples
From Player: /lchssave
From Console: lchssave
I really love the idea behind this plugin. And I'd love to have it to work... But I can't. I have loaded it, but as I type /lchs when targeting a block with a lever, nothing happens. I don't get any confirmation in the chat, nor does the block work as a switch. It doesn't help to target the lever either.
Anyone with similar experiences that have figured out why it behaves this way?