Template:Zh ManagedKits Description Config: Difference between revisions

From Documentation
Jump to navigation Jump to search
Line 21: Line 21:
|-
|-
|class="zhproperty"|default_kit_title||class="zhdescription"|Default kit name
|class="zhproperty"|default_kit_title||class="zhdescription"|Default kit name
|}
=== kits.yml ===
In this file you can define your kits.
Lets to check this kit
<pre>
Simple:
  name: "Simple"
  description: "kit with simple items"
  price: 0
  status: 1
  locked_time: 7200
  items:
    "298": 1
    "299": 1
    "300": 1
    "301": 1
    "273": 1
    "274": 1
    "275": 1
    "276": 1
</pre>
{|class="zhpropertytable"
|-
|class="zhproperty"|Simple:||class="zhdescription"|Kit name, it used for lists
|-
|class="zhproperty"|  name:||class="zhdescription"|Name, currently not in use, but reserved
|-
|class="zhproperty"|  description:||class="zhdescription"|Description
|-
|class="zhproperty"|  price:||class="zhdescription"|Price, set zero if it's free kit
|-
|class="zhproperty"|  status:||class="zhdescription"|Initial status
0 - enabled
1 - disabled
|-
|class="zhproperty"|  items:||class="zhdescription"|Main parent node to item list in kit
|-
|class="zhproperty"|    "298": 1||class="zhdescription"|Item with ID = 298, and quantity = 1
In this case player will get 1 item with ID 298
|-
|class="zhproperty"|  "299": 1||class="zhdescription"|Item with ID = 299, and quantity = 1


|}
|}

Revision as of 11:41, 6 May 2016

Plugin configuration

There are two files to configure plugin


config.yml

This file you can change to set common plugin properties.

economy_enabled Support Economy API

0 - disabled

1 - enabled

default_kit_enabled Give default kit to new players

0 - disabled

1 - enabled

default_kit_title Default kit name


kits.yml

In this file you can define your kits.

Lets to check this kit

Simple:
  name: "Simple"
  description: "kit with simple items"
  price: 0
  status: 1
  locked_time: 7200
  items:
    "298": 1
    "299": 1
    "300": 1
    "301": 1
    "273": 1
    "274": 1
    "275": 1
    "276": 1
Simple: Kit name, it used for lists
name: Name, currently not in use, but reserved
description: Description
price: Price, set zero if it's free kit
status: Initial status

0 - enabled

1 - disabled

items: Main parent node to item list in kit
"298": 1 Item with ID = 298, and quantity = 1

In this case player will get 1 item with ID 298

"299": 1 Item with ID = 299, and quantity = 1