Sorry for my bad english, since it's not my native language. So i decided to create configs and language files for my script.
Then I fill these files such way:
wf "## Файл языка конфигурации RaceSystem" to "plugins/RaceS/Language/ru_RU.yml"
I'm doing everything right?
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/" doesn't exists' (racesystem.sk, line 4: if folder "plugins/RaceS/" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/Language" doesn't exists' (racesystem.sk, line 6: if folder "plugins/RaceS/Language" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Language/ru_RU.yml" doesn't exists' (racesystem.sk, line 8: if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Config.yml" doesn't exists' (racesystem.sk, line 54: if file "plugins/RaceS/Config.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "Language" get of "plugins/RaceS/Config.yml"' (racesystem.sk, line 72: set {setlang} to coloured value "Language" get of "plugins/RaceS/Config.yml"')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"' (racesystem.sk, line 73: set {orc} to coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"')
And so on.
I installed addons:
SqQuery.
on load:
if folder "plugins/RaceS/" doesn't exists:
create folder "plugins/RaceS"
if folder "plugins/RaceS/Language" doesn't exists:
create folder "plugins/RaceS/Language"
if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:
create file "plugins/RaceS/Language/ru_RU.yml"
if folder "plugins/RaceS/" doesn't exists:
create folder "plugins/RaceS"
if folder "plugins/RaceS/Language" doesn't exists:
create folder "plugins/RaceS/Language"
if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:
create file "plugins/RaceS/Language/ru_RU.yml"
wf "## Файл языка конфигурации RaceSystem" to "plugins/RaceS/Language/ru_RU.yml"
I'm doing everything right?
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/" doesn't exists' (racesystem.sk, line 4: if folder "plugins/RaceS/" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/RaceS/Language" doesn't exists' (racesystem.sk, line 6: if folder "plugins/RaceS/Language" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Language/ru_RU.yml" doesn't exists' (racesystem.sk, line 8: if file "plugins/RaceS/Language/ru_RU.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] can't understand this condition: 'file "plugins/RaceS/Config.yml" doesn't exists' (racesystem.sk, line 54: if file "plugins/RaceS/Config.yml" doesn't exists:')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "Language" get of "plugins/RaceS/Config.yml"' (racesystem.sk, line 72: set {setlang} to coloured value "Language" get of "plugins/RaceS/Config.yml"')
[15:04:39 ERROR]: [Skript] Can't understand this expression: 'coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"' (racesystem.sk, line 73: set {orc} to coloured value "orc" get of "plugins/RaceS/Language/%{setlang}%.yml"')
And so on.
I installed addons:
SqQuery.
Last edited: