Stránka 1 z 1

Plugin SG - kity

Napsal: 27 srp 2016, 15:50
od mijo1652
Server: 82.208.17.40:27381

Ahojte....chcem sa spýtať...
mám plugin SG (https://www.spigotmc.org/resources/survivalgames.1351/) a chcem si vytvoriť nové kity... no vždy keď nejaký vytvorím, reštartnem alebo reloadnem plugin a ten plugin prestane fungovať...

Podľa mňa robím chybu v

Kód: Vybrat vše

 position: číslo


Ak vlastníte tento plugin, neviete ako to mám vypĺňať?
Ak máte spravené svoje kity, pošlete mi prosím aspoň dva, ako to mám robiť? (pôvodne sú tam 4, ale tam to je divne zoradené)

Ďakujem za pomoc... :)

Re: Plugin SG - kity

Napsal: 27 srp 2016, 16:01
od variodriver
Dodej celý config

Re: Plugin SG - kity

Napsal: 27 srp 2016, 18:38
od mijo1652
Základny neupravený kits.yml :

Kód: Vybrat vše

# Kits permission is: sg.kits.<kitname>
# Usage: 'ItemID : Amount'
# You can also add extra enchantments, names, lores by doing this
# 'ItemID : Amount : Extra'
# Enchanting is done like this: enchant:enchantment:level
# Naming is done like this: name:name
# Adding a lore is done like this: lore:lore
# List of enchantments you can use: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
# List of colors you can use as a dye: BLACK, AQUA, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, ORANGE, PURPLE, RED, SILVER, TEAL, WHITE, YELLOW
# You can also control the durability of items by doing this 'ItemID:Durability : Amount'
# Example '267:50 : 1 : enchant:DAMAGE_ALL:2 : name:&4GOD SWORD : lore:&b its a cool sword!'
# This will create an iron sword with a durability of 50 and sharpness 2 enchantment on it and the name of 'GOD SWORD' with a dark red color and a lore that says 'Its a cool sword' in an aqua color
# Please note that ur kit name must be lowercase!
#
# Potion effects format: 'POTION_ENUM : DURATION : LEVEL'
# For a list of potions you can use visit this website https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
# Example 'SPEED : 99999 : 1' this will give unlimited speed 1

Kits:
  default:
    permission: false
    permission-name: sg.kits.default
    buyable: false
    price: 0
    position: -1
    item: '351:10'
    armor:
      helmet: '0'
      chestplate: '299'
      leggings: '0'
      boots: '0'
    description:
    - '&7Default kit!'
    items:
    - '268 : 1'
    - '320 : 3'
    potion-effects: []
  archer:
    permission: false
    permission-name: sg.kits.archer
    buyable: false
    price: 0
    position: -1
    item: '261 : enchant:ARROW_DAMAGE:1'
    armor:
      helmet: '298'
      chestplate: '299 : enchant:PROTECTION_ENVIRONMENTAL:1 : dye:RED'
      leggings: '0'
      boots: '0'
    description:
    - '&7Start with a protection leather chestplate'
    - '&7and a none enchanted helmet and a power 1 bow with 10 arrows and some food!'
    items:
    - '261 : 1 : enchant:ARROW_DAMAGE:1'
    - '262 : 10'
    - '320 : 2'
    potion-effects: []
  pro:
    permission: false
    permission-name: sg.kits.pro
    buyable: true
    price: 400
    position: 1
    item: '307'
    armor:
      helmet: '0'
      chestplate: '307'
      leggings: '0'
      boots: '0'
    description:
    - '&7Start with an iron chestplate and 1 cooked porkchop'
    items:
    - '320 : 1'
    potion-effects: []
  beast:
    permission: true
    permission-name: sg.kits.beast
    buyable: false
    price: 0
    position: 1
    item: '267'
    armor:
      helmet: '0'
      chestplate: '0'
      leggings: '308'
      boots: '0'
    description:
    - '&7Start with many goodies'
    items:
    - '267 : 1'
    - '261 : 1'
    - '262 : 5'
    - '46 : 2'
    - '320 : 2'
    potion-effects:
    - 'SPEED : 99999 : 1'

Ono to tam je delené na kity Moje kity, Platené a VIP. Takže su to 3 gui menu... a neviem v akom poradí majú ísť tie pozície...