Template:Zh ManagedKits Description Details: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(17 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"| | |||
* zhmanagedkits.kit.details.available | |||
* zhmanagedkits.kit.details.all | |||
* 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="zhproperty"|/kit enable '''KitName'''||class="zhdescription"| | |||
* zhmanagedkits.kit.state.enable | |||
* Server | |||
|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"| | |||
* zhmanagedkits.kit.state.enable | |||
* Server | |||
|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"| | |||
* zhmanagedkits.kit.state.disable | |||
* Server | |||
|class="zhdescription"|Disable the kit ''KitName'' | |||
|- | |||
|class="zhproperty"|/kit disable all||class="zhdescription"| | |||
* zhmanagedkits.kit.state.disable | |||
* Server | |||
|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"| | |||
* zhmanagedkits.kit.config.reload | |||
* Server | |||
|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"| | |||
* zhmanagedkits.kit.get | |||
|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 | |||
|} | |} | ||
== Description in examples == | |||
Plugin initialization, some valuable information is displayed | |||
[[File:Kit-1-initialize.png]] | |||
=== Server console commands === | |||
Call '''kit''' command | |||
[[File:Kit-2-usage.png]] | [[File:Kit-2-usage.png]] | ||
Call '''kit list''' command | |||
[[File:Kit-3-list.png]] | [[File:Kit-3-list.png]] | ||
Call '''kit list all''' command | |||
[[File:Kit-4-list-all.png]] | [[File:Kit-4-list-all.png]] | ||
Call '''kit details''' command to get information about a kit | |||
[[File:Kit-5-details.png]] | [[File:Kit-5-details.png]] | ||
Call '''kit disable''' command to disable a kit. | |||
If you disable a kit, all players get message about that. | |||
[[File:Kit-6-disable.png]] | [[File:Kit-6-disable.png]] | ||
Call '''kit disable all''' command to disable all available kits | |||
[[File:Kit-7-disable-all.png]] | [[File:Kit-7-disable-all.png]] | ||
Call '''kit enable''' command to enable a kit. | |||
If you enable a kit, all players get message about that. | |||
[[File:Kit-8-enable.png]] | [[File:Kit-8-enable.png]] | ||
Call '''kit enable all''' command to enable all available kits. If some kits can't be enabled, you'll see messages. | |||
[[File:Kit-9-enable-all.png]] | [[File:Kit-9-enable-all.png]] | ||
Call '''kit reload''' command to reload kits, all changes in kits config file is applied. | |||
[[File:Kit-10-reload.png]] | [[File:Kit-10-reload.png]] | ||
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) | |||
[[File:User-1-default-got-kit.png]] | [[File:User-1-default-got-kit.png]] | ||
Call '''/kit list''' command to see what kits are available | |||
[[File:User-2-default-available-kits-after-got.png]] | [[File:User-2-default-available-kits-after-got.png]] | ||
Call '''/kit get Gold''' command to get kit with name ''Gold'' | |||
[[File:User-3-gold-got-kit.png]] | [[File:User-3-gold-got-kit.png]] | ||
Call '''/kit list''' command to see what kits are available. As you can see now ''Gold'' kit is enabled but unavailable. | |||
[[File:User-4-gold-available-kits-after-got.png]] | [[File:User-4-gold-available-kits-after-got.png]] | ||
Call '''/kit details Gold''' to see details of the kit. | |||
[[File:User-5-gold-kit-details-after-got.png]] | [[File:User-5-gold-kit-details-after-got.png]] | ||
Call '''/kit get Diamond''' command to get kit with name ''Diamond'' | |||
[[File:User-6-diamond-got-kit.png]] | [[File:User-6-diamond-got-kit.png]] | ||
Now try again to call '''/kit get Diamond''' command to get kit with name ''Diamond'' again. You can see error message. | |||
[[File:User-7-diamond-tried-to-get-kit-again.png]] | [[File:User-7-diamond-tried-to-get-kit-again.png]] | ||
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. | |||
[[File:User-8-brilliant-kit-list-locked-kit.png]] | [[File:User-8-brilliant-kit-list-locked-kit.png]] | ||
Call '''/kit details Brilliant''' to see details of the kit. As you can see it is locked by money | |||
[[File:User-9-brilliant-kit-details-for-locked-kit.png]] | [[File:User-9-brilliant-kit-details-for-locked-kit.png]] | ||
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. | |||
[[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