Çözüldü DeluxeMenus has_item sorunu.

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

wulnry

Odunlara Vur Vur Vur!
Katılım
19 Ağustos 2022
Mesajlar
27
Elmaslar
4
Puan
3.805
Konum
istanbul
Minecraft
rivoles

Discord:

wulnry

Merhabalar, Minecraft sunucumda market için deluxemenus pluginini kullanıyorum. Şöyle menüdeyken mesela çimen satmak istediğimde envanterimde yok dolayısıyla satamıyorum. Ama bazı bloklarda envanterde olmasa bile satabiliyorum. Ve kodlardada hiç sorun yok, nasıl çözebilirim?

Örnek:
Kod:
Çimen:

  'grass_block':

    material: grass_block

    slot: 19

    display_name: '&eGrass Block'

    lore:

      - ''

      - "&8• &fSell for: &c$1.4/ea"

      - "&8• &fBuy for: &a$28/ea"

      - ''

      - '&e➥ &cLeft-Click to sell 1x'

      - '   &cShift-Left-Click to sell 16x'

      - '&e➦ &aRight-Click to buy 1x'

      - '   &aShift-Right-Click to buy 16x'

    left_click_requirement:

      requirements:

        has_item:

          type: has item

          material: 'grass_block'

          amount: 1

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have the items to sell.'

    shift_left_click_requirement:

      requirements:

        has_item:

          type: has item

          material: 'grass_block'

          amount: 16

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have the items to sell.'

    right_click_requirement:

      requirements:

        has_item:

          type: has money

          amount: 28

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have enough money to buy.'

    shift_right_click_requirement:

      requirements:

        has_item:

          type: has money

          amount: 448

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have enough money to buy.'

    left_click_commands:

      - '[console] eco give %player_name% 1.4'

      - '[console] minecraft:clear %player_name% grass_block 1'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have sold this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    shift_left_click_commands:

      - '[console] eco give %player_name% 22.4'

      - '[console] minecraft:clear %player_name% grass_block 16'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have sold these items!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    right_click_commands:

      - '[console] eco take %player_name% 28'

      - '[console] minecraft:give %player_name% grass_block 1'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have bought this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    shift_right_click_commands:

      - '[console] eco take %player_name% 448'

      - '[console] minecraft:give %player_name% grass_block 16'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have bought this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

Kod:
Toprak:

  'dirt':

    material: dirt

    slot: 20

    display_name: '&eDirt'

    lore:

      - ''

      - "&8• &fSell for: &c$2.5/ea"

      - "&8• &fBuy for: &a$50/ea"

      - ''

      - '&e➥ &cLeft-Click to sell 1x'

      - '   &cShift-Left-Click to sell 16x'

      - '&e➦ &aRight-Click to buy 1x'

      - '   &aShift-Right-Click to buy 16x'

    left_click_requirement:

      requirements:

        has_item:

          type: has item

          material: 'dirt'

          amount: 1

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have the items to sell.'

    shift_left_click_requirement:

      requirements:

        has_item:

          type: has item

          material: 'dirt'

          amount: 16

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have the items to sell.'

    right_click_requirement:

      requirements:

        has_item:

          type: has money

          amount: 50

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have enough money to buy.'

    shift_right_click_requirement:

      requirements:

        has_item:

          type: has money

          amount: 800

          strict: true

          deny_commands:

          - '[message] &8[&b&l!&8] &b&lShop &8→ &cYou don''t have enough money to buy.'

    left_click_commands:

      - '[console] eco give %player_name% 2.5'

      - '[console] minecraft:clear %player_name% dirt 1'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have sold this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    shift_left_click_commands:

      - '[console] eco give %player_name% 40'

      - '[console] minecraft:clear %player_name% dirt 16'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have sold these items!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    right_click_commands:

      - '[console] eco take %player_name% 50'

      - '[console] minecraft:give %player_name% dirt 1'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have bought this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'

    shift_right_click_commands:

      - '[console] eco take %player_name% 800'

      - '[console] minecraft:give %player_name% dirt 16'

      - '[message] &8[&b&l!&8] &b&lShop &8→ &aYou have bought this item!'

      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'

      - '[refresh]'
 
Moderatör tarafından düzenlendi:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
Kod:
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.coarse_dirt.shift_left_click_requirement.requirements.has_item does not specify a valid Material name!
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.mycelium.left_click_requirement.requirements.has_item does not specify a valid Material name!
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.mycelium.shift_left_click_requirement.requirements.has_item does not specify a valid Material name!

material isimlerini şöyle yazıp tekrar deneyin:

DIRT, GRASS_BLOCK, DIRTH_PATH


eğer eklenti bunları büyük harfe (upper case) çevirmiyorsa belki hatayı o yüzden veriyor olabilir. Türkçe karakterlere de dikkat edin, DİRT yerine DIRT yazacaksınız. işe yaramazsa (' DIRT ') kesme işaretleri olmadan deneyin.

iyi forumlar <3
 
Kod:
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.coarse_dirt.shift_left_click_requirement.requirements.has_item does not specify a valid Material name!
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.mycelium.left_click_requirement.requirements.has_item does not specify a valid Material name!
[14:58:50] [Server thread/WARN]: [DeluxeMenus] has item requirement at path: items.mycelium.shift_left_click_requirement.requirements.has_item does not specify a valid Material name!

material isimlerini şöyle yazıp tekrar deneyin:

DIRT, GRASS_BLOCK, DIRTH_PATH


eğer eklenti bunları büyük harfe (upper case) çevirmiyorsa belki hatayı o yüzden veriyor olabilir. Türkçe karakterlere de dikkat edin, DİRT yerine DIRT yazacaksınız. işe yaramazsa (' DIRT ') kesme işaretleri olmadan deneyin.

iyi forumlar <3
kral çok var ya, toplu düzeltme var mı?
 
yok sorunu buldum ya, mesela dirt var ya direk dırt olarak yazınca oluyor. Ama işte çok i harfi var :D sadece 5 tane dolu dolu blok kategorisinin menüsü..
"Türkçe karakterlere de dikkat edin, DİRT yerine DIRT yazacaksınız." zaten demiştim, eklenti geliştiricileri nerden bilsin bizim türkçeyi... iyi forumlar <3
 
konu kapandı hocam kilit sağolun.
 
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