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 userBound item
nonenone


Username: Luphie
Item Held: bone
Command: /lchs me
Created Keyblock:

Bound userBound item
Luphienone


Username: Luphie
Item Held: bone
Command: /lchs key
Created Keyblock:

Bound userBound item
nonebone


Username: Luphie
Item Held: bone
Command: /lchs key:gold_sword
Created Keyblock:

Bound userBound item
Luphiegold_sword


Username: Luphie
Item Held: bone
Command: /lchs user:testuser key
Created Keyblock:

Bound userBound item
testuserbone


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


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes