Rehber Kit Ayarlama Mantığı: Başlangıç Eşyaları ve Bekleme Süreleri (Cooldown)

  • Konuyu Başlatan Konuyu Başlatan ByVoxar
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 231
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ByVoxar

Umutsuz durumlar yoktur, umutsuz insanlar vardır.
Yıldız Destek
Süper Destek
Onaylı Satıcı
Katılım
24 Nisan 2025
Mesajlar
1.002
Elmaslar
279
Puan
3.880
Yaş
15
Konum
Kocaeli
Minecraft
ByVoxar

Discord:

ByVoxar

PlayerKits, Minecraft sunucularında oyunculara belirli aralıklarla eşya paketleri (kitler) vermek için kullanılan bir Spigot/Paper eklentisidir. Sunucu yöneticileri, config dosyası üzerinden başlangıç, VIP, yemek ve event kitleri tanımlayabilir.
Başlıngıçta eşya verme mantığı

Kod:
CONFİG.YML

drop_items_if_full_inventory: false
claim_kit_short_command: false
close_inventory_on_claim: false
kit_preview: true
kit_preview_requires_kit_permission: false
first_join_kit: iron #plugins\PlayerKits2\kits in ismi
new_kit_default_save_mode_original: true
new_kit_default_inventory: "main_inventory"
new_kit_default_values:
  cooldown: 3600
  permission_required: false
  actions:
    claim:
      1:
        action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;2"
    error:
      1:
        action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1"
  display:
    default:
      id: STONE_SWORD
      name: "&c&l%kit_name% &cKit"
      lore:
        - '&fThis is a description of the kit.'
        - ''
        - '&7Edit it on the &c%kit_name%.yml &7file'
        - '&7or using &c/kit edit %kit_name%'
      item_flags:
        - HIDE_ATTRIBUTES
    no_permission:
      id: BARRIER
      name: "&c&l%kit_name% &cKit"
      lore:
        - "&cYou don't have permissions to claim"
        - "&cthis kit."
    cooldown:
      id: STONE_SWORD
      name: "&c&l%kit_name% &cKit"
      lore:
        - "&cYou need to wait &7%time%"
        - "&cto claim this kit again."
      item_flags:
        - HIDE_ATTRIBUTES
player_data_save_time: 300
update_notify: true
use_minimessage: false
mysql_database:
  enabled: false
  host: localhost
  port: 3306
  username: root
  password: root
  database: database
  pool:
    connectionTimeout: 5000
  advanced:
    verifyServerCertificate: false
    useSSL: true
    allowPublicKeyRetrieval: true


Kod:
kits/iron.yml kitimiz

cooldown: 0
items:
  1:
    id: IRON_AXE
    amount: 1
  2:
    id: IRON_PICKAXE
    amount: 1
  3:
    id: IRON_SWORD
    amount: 1
display:
  default:
    id: IRON_AXE
    name: '&c&lIron &cKit'
    lore:
      - '&fThis kit includes:'
      - '&8- &7x1 Iron Axe'
      - '&8- &7x1 Iron Pickaxe'
      - '&8- &7x1 Iron Sword'
      - ' '
      - '&7Cooldown: &c3 hours'
      - ''
      - '&aLeft Click to claim!'
      - '&bRight Click to preview!'
    item_flags:
      - HIDE_ATTRIBUTES
  cooldown:
    id: IRON_AXE
    name: "&c&lIron &cKit"
    lore:
      - '&fThis kit includes:'
      - '&8- &7x1 Iron Axe'
      - '&8- &7x1 Iron Pickaxe'
      - '&8- &7x1 Iron Sword'
      - ' '
      - "&cYou need to wait &7%time%"
      - "&cto claim this kit again."
    item_flags:
      - HIDE_ATTRIBUTES
actions:
  claim:
    1:
      action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;2"
  error:
    1:
      action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1"
Kite süre atama
Kod:
#Örnek kit süre atayacağız

cooldown: 43200 # burdan süre atacağız Saniye cinsinden ölcüyor 3600=1saat
permission_required: true
items:
  1:
    id: DIAMOND_AXE
    amount: 1
  2:
    id: DIAMOND_PICKAXE
    amount: 1
  3:
    id: DIAMOND_SWORD
    name: "&4Super Sword"
    amount: 1
    lore:
      - "&7Best sword on the server."
      - ""
      - "&7Owner: &6%player_name%"
    enchants:
      - "FIRE_ASPECT;5"
actions:
  claim:
    1:
      action: "console_command: bc &6%player% &ejust claimed a &aDIAMOND KIT&e!"
      display_item:
        id: BOOK
        name: "&4Announcement"
        lore:
          - "&7Claiming this kit will send an announcement"
          - "&7to the whole server."
    2:
      action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;2"
  error:
    1:
      action: "playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1"
requirements:
  one_time_requirements: false
  price: 5000
  message:
  - '&fYou need $5000'
  - '&8Status: &7$%vault_eco_balance% %status_symbol_price%'
  - ''
  - '&fYou need level 20+'
  - '&8Status: &7%player_level% %status_symbol_requirement_1%'
  extra_requirements:
  - "%player_level% >= 20"
display:
  default:
    id: DIAMOND_SWORD
    name: '&c&lDiamond &cKit'
    amount: 1
    lore:
      - '&fThis kit includes:'
      - '&8- &7x1 Diamond Axe'
      - '&8- &7x1 Diamond Pickaxe'
      - '&8- &7x1 Diamond Sword'
      - ''
      - '&7Cooldown: &c12 hours'
      - '&7Price: &a$5000'
      - ''
      - '&aLeft Click to buy!'
      - '&bRight Click to preview!'
    item_flags:
      - HIDE_ATTRIBUTES
  no_permission:
    id: BARRIER
    name: '&c&lDiamond &cKit'
    amount: 1
    lore:
      - '&fThis kit includes:'
      - '&8- &7x1 Diamond Axe'
      - '&8- &7x1 Diamond Pickaxe'
      - '&8- &7x1 Diamond Sword'
      - ''
      - '&cYou don''t have permissions'
      - '&cto claim this kit.'
      - ''
      - '&7You need: &bVIP&6+ &7rank.'
  cooldown:
    id: DIAMOND_SWORD
    name: '&c&lDiamond &cKit'
    amount: 1
    lore:
      - '&fThis kit includes:'
      - '&8- &7x1 Diamond Axe'
      - '&8- &7x1 Diamond Pickaxe'
      - '&8- &7x1 Diamond Sword'
      - ''
      - '&cYou need to wait &7%time%'
      - '&cto claim this kit again.'
    item_flags:
      - HIDE_ATTRIBUTES
 
Gelmiș serimizin yeni bölümü ellerinize sağlık 😍
 
çok güzel bir anlatım olmuş elinize sağlık
 
Forumlarınız cidden yeni oyuncular için faydalı tebrik ederim şuan tek tek hepsini okuyorum
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst