Template:Zh ManagedKits Description Details: Difference between revisions
m (→Description) |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | == Commands description == | ||
Line 8: | Line 8: | ||
|- | |- | ||
|class="zhproperty"|/kit||class="zhdescription"| | |class="zhproperty"|/kit||class="zhdescription"| | ||
* | * zhmanagedkits.kit.command | ||
* Server | * Server | ||
|class="zhdescription"|Get all commands usage | |class="zhdescription"|Get all commands usage | ||
|- | |- | ||
|class="zhproperty"|/kit list||class="zhdescription"| | |class="zhproperty"|/kit list||class="zhdescription"| | ||
* | * zhmanagedkits.kit.list.available | ||
* Server | * Server | ||
|class="zhdescription"|Get list of active kits, you can see titles in different colors depends on it's status | |class="zhdescription"|Get list of active kits, you can see titles in different colors depends on it's status | ||
Line 21: | Line 21: | ||
|- | |- | ||
|class="zhproperty"|/kit list all||class="zhdescription"| | |class="zhproperty"|/kit list all||class="zhdescription"| | ||
* | * zhmanagedkits.kit.list.all | ||
* Server | * Server | ||
|class="zhdescription"|Get list of all kits, you can see titles in different colors depends on it's status | |class="zhdescription"|Get list of all kits, you can see titles in different colors depends on it's status | ||
* gray - hidden kit | |||
* white - enabled kit | * white - enabled kit | ||
* red - disabled kit | * red - disabled kit | ||
* gold - enabled kit with price (not free) | * gold - enabled kit with price (not free) | ||
|- | |||
|class="zhproperty"|/kit list disabled||class="zhdescription"| | |||
* zhmanagedkits.kit.list.disabled | |||
* Server | |||
|class="zhdescription"|Get list of all disabled kits | |||
|- | |||
|class="zhproperty"|/kit list hidden||class="zhdescription"| | |||
* zhmanagedkits.kit.list.hidden | |||
* Server | |||
|class="zhdescription"|Get list of all hidden kits | |||
|- | |- | ||
|class="zhproperty"|/kit details '''KitName'''||class="zhdescription"| | |class="zhproperty"|/kit details '''KitName'''||class="zhdescription"| | ||
* | * zhmanagedkits.kit.details.available | ||
* zhmanagedkits.kit.details.all | |||
* Server | * Server | ||
|class="zhdescription"|Get description of the kit ''KitName'', you can see information about the kit, it's status and price (if Economy API is enabled) | |class="zhdescription"|Get description of the kit ''KitName'', you can see information about the kit, it's status and price (if Economy API is enabled) | ||
|- | |- | ||
|class="zhproperty"|/kit enable '''KitName'''||class="zhdescription"| | |class="zhproperty"|/kit enable '''KitName'''||class="zhdescription"| | ||
* | * zhmanagedkits.kit.state.enable | ||
* Server | * Server | ||
|class="zhdescription"|Enable the kit ''KitName'', if the kit can't be enabled (due to configuration), it will be disabled | |class="zhdescription"|Enable the kit ''KitName'', if the kit can't be enabled (due to configuration), it will be disabled | ||
|- | |- | ||
|class="zhproperty"|/kit enable all||class="zhdescription"| | |class="zhproperty"|/kit enable all||class="zhdescription"| | ||
* | * zhmanagedkits.kit.state.enable | ||
* Server | * Server | ||
|class="zhdescription"|Enable all available kits, if kit can't be enabled (due to configuration), it will be disabled | |class="zhdescription"|Enable all available kits, if kit can't be enabled (due to configuration), it will be disabled | ||
|- | |- | ||
|class="zhproperty"|/kit disable '''KitName'''||class="zhdescription"| | |class="zhproperty"|/kit disable '''KitName'''||class="zhdescription"| | ||
* | * zhmanagedkits.kit.state.disable | ||
* Server | * Server | ||
|class="zhdescription"|Disable the kit ''KitName'' | |class="zhdescription"|Disable the kit ''KitName'' | ||
|- | |- | ||
|class="zhproperty"|/kit disable all||class="zhdescription"| | |class="zhproperty"|/kit disable all||class="zhdescription"| | ||
* | * zhmanagedkits.kit.state.disable | ||
* Server | * Server | ||
|class="zhdescription"|Disable all kits | |class="zhdescription"|Disable all kits | ||
|- | |||
|class="zhproperty"|/kit hide '''KitName'''||class="zhdescription"| | |||
* zhmanagedkits.kit.state.hide | |||
* Server | |||
|class="zhdescription"|Hide the kit ''KitName'' | |||
|- | |||
|class="zhproperty"|/kit hide all||class="zhdescription"| | |||
* zhmanagedkits.kit.state.hide | |||
* Server | |||
|class="zhdescription"|Hide all available kits | |||
|- | |||
|class="zhproperty"|/kit show '''KitName'''||class="zhdescription"| | |||
* zhmanagedkits.kit.state.show | |||
* Server | |||
|class="zhdescription"|Set the kit ''KitName'' visible | |||
|- | |||
|class="zhproperty"|/kit show all||class="zhdescription"| | |||
* zhmanagedkits.kit.state.show | |||
* Server | |||
|class="zhdescription"|Set all available kits visible | |||
|- | |- | ||
|class="zhproperty"|/kit reload||class="zhdescription"| | |class="zhproperty"|/kit reload||class="zhdescription"| | ||
* | * zhmanagedkits.kit.config.reload | ||
* Server | * Server | ||
|class="zhdescription"|Reload all kits from kit configuration file | |class="zhdescription"|Reload all kits from kit configuration file | ||
|- | |||
|class="zhproperty"|/kit save||class="zhdescription"| | |||
* zhmanagedkits.kit.config.save | |||
* Сервер | |||
|class="zhdescription"|Save current kits state into '''kits.yml''' config file | |||
|- | |- | ||
|class="zhproperty"|/kit get '''KitName'''||class="zhdescription"| | |class="zhproperty"|/kit get '''KitName'''||class="zhdescription"| | ||
* | * zhmanagedkits.kit.get | ||
|class="zhdescription"|Give to a player the kit ''KitName''. If he/ | |class="zhdescription"|Give to a player the kit ''KitName''. If he/she has permission to use (time, money...) | ||
If Economy API is enabled, the price of the kit will be get | If Economy API is enabled, the price of the kit will be get | ||
Line 66: | Line 103: | ||
|} | |} | ||
== Description in examples == | |||
Plugin initialization, some valuable information is displayed | Plugin initialization, some valuable information is displayed | ||
Line 73: | Line 110: | ||
=== Server console commands === | |||
Line 125: | Line 162: | ||
You can't call '''kit get''' command to get kit on a server | You can't call '''kit get''' command to get kit on a server. You can see error message. | ||
[[File:Kit-11-get-server.png]] | [[File:Kit-11-get-server.png]] | ||
=== Player commands === | |||
When player connected to the world first time, he/she will get default kit (if that enabled) | When player connected to the world first time, he/she will get default kit (if that enabled) | ||
Line 186: | Line 221: | ||
[[File:User-10-brilliant-tried-to-get-locked-kit.png]] | [[File:User-10-brilliant-tried-to-get-locked-kit.png]] | ||
== Using signs == | |||
To create sing for kit you need: | |||
* Create sign | |||
* On the first line you have to write '''[zhManagedKits]''' | |||
* On the second line you have to write '''Your_KitName_To_Use''' |
Latest revision as of 23:27, 11 May 2016
Commands description
Command | Permission | Description |
/kit |
|
Get all commands usage |
/kit list |
|
Get list of active kits, you can see titles in different colors depends on it's status
|
/kit list all |
|
Get list of all kits, you can see titles in different colors depends on it's status
|
/kit list disabled |
|
Get list of all disabled kits |
/kit list hidden |
|
Get list of all hidden kits |
/kit details KitName |
|
Get description of the kit KitName, you can see information about the kit, it's status and price (if Economy API is enabled) |
/kit enable KitName |
|
Enable the kit KitName, if the kit can't be enabled (due to configuration), it will be disabled |
/kit enable all |
|
Enable all available kits, if kit can't be enabled (due to configuration), it will be disabled |
/kit disable KitName |
|
Disable the kit KitName |
/kit disable all |
|
Disable all kits |
/kit hide KitName |
|
Hide the kit KitName |
/kit hide all |
|
Hide all available kits |
/kit show KitName |
|
Set the kit KitName visible |
/kit show all |
|
Set all available kits visible |
/kit reload |
|
Reload all kits from kit configuration file |
/kit save |
|
Save current kits state into kits.yml config file |
/kit get KitName |
|
Give to a player the kit KitName. If he/she has permission to use (time, money...)
If Economy API is enabled, the price of the kit will be get |
Description in examples
Plugin initialization, some valuable information is displayed
Server console commands
Call kit command
Call kit list command
Call kit list all command
Call kit details command to get information about a kit
Call kit disable command to disable a kit.
If you disable a kit, all players get message about that.
Call kit disable all command to disable all available kits
Call kit enable command to enable a kit.
If you enable a kit, all players get message about that.
Call kit enable all command to enable all available kits. If some kits can't be enabled, you'll see messages.
Call kit reload command to reload kits, all changes in kits config file is applied.
You can't call kit get command to get kit on a server. You can see error message.
Player commands
When player connected to the world first time, he/she will get default kit (if that enabled)
Call /kit list command to see what kits are available
Call /kit get Gold command to get kit with name Gold
Call /kit list command to see what kits are available. As you can see now Gold kit is enabled but unavailable.
Call /kit details Gold to see details of the kit.
Call /kit get Diamond command to get kit with name Diamond
Now try again to call /kit get Diamond command to get kit with name Diamond again. You can see error message.
Now change price for Brilliant kit from 1000 to 10000. On that moment player haven't this amount of money.
Let's try to see available kits. You can see, that Brilliant kit unavailable.
Call /kit list command to see what kits are available.
Call /kit details Brilliant to see details of the kit. As you can see it is locked by money
Now try to call /kit get Brilliant command to get kit with name Brilliant which is unavailable due to insufficient amount of money. You can see error message.
Using signs
To create sing for kit you need:
- Create sign
- On the first line you have to write [zhManagedKits]
- On the second line you have to write Your_KitName_To_Use