Więc chciałem zrobić skrypt działający podobnie do pluginu Azrank ze względu na możliwości kupna czasowych rang, ale mam problem z tym że nic się nie zapisuje do pliku, a skrypt po odświeżeniu komendą /sk reload, nie pokazuje żadnych błędów. Próbowałem wcześniej zapisać coś w pliku przy użyciu skQuery ale też to nic nie dało. Co może być źle lub co powinienem zrobić aby zadziałało?
options:
file: bd.yml
variables:
{playerName} = ""
{rankName} = ""
command /rank [<text>] set [<text>]:
permission: ns.rankset.set
usage: /rank <gracz> set <ranga>
trigger:
if arg 1 or arg 2 is not set:
send "Użycie /rank <gracz> set <ranga>"
stop
if arg 1 and arg 2 is set:
set {playerName} to arg 1
set {rankName} to arg 2
execute console command "lp user %arg 1% parent set %arg 2% global"
send "Gracz %{playerName}% uzysakał rangę %{rankName}%"
set skutil yaml value "User" from file "{@file}" to "%{playerName}%"
stop