Issue with On death event with SKUltilities

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

martinn112

Member
Jan 21, 2018
23
0
1
I have this code:
Code:
on death:
    set {_name.victim} to skutil yaml value uuid of victim from file "plugins/SkriptConfigs/NavnListe.yml"
    set {_name.attacker} to skutil yaml value uuid of attacker from file "plugins/SkriptConfigs/NavnListe.yml"
    send "TEST AFTER NAMESET" to victim

and with this it will not send ANY message to me. but if i remove Line 3, it starts working. Like this:
Code:
on death:
    set {_name.victim} to skutil yaml value uuid of victim from file "plugins/SkriptConfigs/NavnListe.yml"
    send "TEST AFTER NAMESET" to victim

But i can also get it work with this:
Code:
on death:
    set {_name.victim} to skutil yaml value uuid of victim from file "plugins/SkriptConfigs/NavnListe.yml"
    set {_name.attacker} to skutil yaml value "%uuid of attacker%" from file "plugins/SkriptConfigs/NavnListe.yml"
    send "TEST AFTER NAMESET" to victim
But Skript complains about it being unnecessary and i should remove the " and %. Otherwise i don't get any error at all.
Im using Skript 2.2 dev36
PaperSpigot 1.8.8
skUltilies0.9.2
 
Status
Not open for further replies.