Skutilities - <none>

Discussion in 'Skript' started by bnjrKemal, Aug 6, 2018.

  1. Code (Text):

    options:
        file: /plugins/ItemSpawnerV2/spawners.yml
    command /telafi:
        trigger:
            #loop all items in player's inventory:
            #    if loop-item is not air:
            #        send "&cEnvanterini tamamen boşalt!" to player
            #        stop trigger
            #    if loop-item is air:
            send "&bİşlem yapılıyor.. Lütfen bekleyin.."
            set {spawners.adet::*} to yaml nodes with keys "spawners" from file "{@file}"
            loop {spawners.adet::*}:
                set {spawners.owner::*} to yaml nodes "spawners.%loop-value-1%.owner" from file "{@file}"
                loop {spawners.owner::*}:
                    if loop-value-2 is UUID of player:
                        set {spawners.type::*} to yaml nodes "spawners.%loop-value-1%.type" from file "{@file}"
                        give player 1 of {spawners.type::*} named "&b&lTelafi" with lore "&a&lSağ tıkla"
                        set yaml value "spawners.%loop-value-1%.owner" from file "{@file}" to "verildi-%player%"
            send "&bİşlem tamamlandı. Teşekkürler." to player
            #send "no"
            send "%{spawners.adet::*}%"
            send "%{spawners.owner::*}%"
            send "%{spawners.type::*}%"
     
    Code (Text):

    spawners:
      0:
        type: DIAMOND_BLOCK
        owner: 9b6a72ee-7f42-354e-9ff-0356a6e0caf
        loc:
          world: ASkyBlock
          x: -3630.0
          y: 37.0
          z: 1606.0
      1:
        type: IRON_INGOT
        owner: 9b6a72ee-7f42-354e-9ff-0356a6e0caf
        loc:
          world: ASkyBlock
          x: -2801.0
          y: 124.0
          z: -408.0
     
    doesn't have error but why it's say <none> ?
     
  2. What says <none>????
     
  3. When i get command "/telafi", then so it say <none>.
    From
    Code (Text):

            send "%{spawners.adet::*}%"
            send "%{spawners.owner::*}%"
            send "%{spawners.type::*}%"
     
    To
    <none>
    <none>
    <none>
     
  4. I think you have to use the yaml list expression instead of the node one
     
  5. okey locked topic.