#rising lava skript help
1 messages · Page 1 of 1 (latest)
Your code is a complete disaster
function loadKits():
yaml load "plugins/Skript/kits.yml" into "kits"
wait 1 tick
if yaml value "normal" from "kits" is not present:
execute console command "say &cError loading kits.yml! Please check the file."
stop
execute console command "say &aKits successfully loaded from kits.yml!"
command /vote <text>:
trigger:
if {lavarising.voted::%player%} is set:
send "&cYou have already voted!" to player
stop
if argument is not "normal" and argument is not "insane" and argument is not "void":
send "&cInvalid vote! Use &6/vote [normal|insane|void]."
stop
set {lavarising.voted::%player%} to true
add 1 to {vote.%argument%}
send "&aYou voted for &e%argument%&a mode!"
function loadKits():
yaml load "plugins/Skript/kits.yml" as "kits"
wait 1 tick
if yaml value "normal" from "kits" is not set:
execute console command "say &cError loading kits.yml! Please check the file."
stop
execute console command "say &aKits successfully loaded from kits.yml!"
You should at all times try ro avoid execute xonsole command
If any:
Condition 1...
Condition 2...
Condition 3...
Then:
For the line 42 error
?
Idk about yaml syntax but it says youre using a string instead of a date somewhere
