Not possible yet.Yes, but I need it to be like a list, to be more easy to edit.
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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Not possible yet.Yes, but I need it to be like a list, to be more easy to edit.
options:
max_warns: 4
dissallowed_muted_cmds:
- 'msg'
- 'tell'
- 'helpop'
messages:
prefix: "&c&lSuperBans &8» &7"
ban_screen_message:
- '&7Sadly, you were &cBanned &7from &6ServerName&7. Apply on our forums if you want to dispute your ban!%nl%%nl%'
- '%&7Banned by: &a%{sban.bannedby.%{_p}%}%%'
on script load:
set {superbans.options.max_warns} to yml value "options.max_warns" of file "plugins\Skript\scripts\messages.yml"
set {superbans.options.disallowed_muted_cmds} to yml value "options.dissallowed_muted_cmds" of file "plugins\Skript\scripts\messages.yml"
set {superbans.messages.prefix} to yml value "messages.prefix" of file "plugins\Skript\scripts\messages.yml"
set {superbans.messages.ban_screen_message} to yml value "messages.ban_screen_message" of file "plugins\Skript\scripts\messages.yml"
Very useless solution. If you using YML - use direct returns, not basic variables, or use list variables.Hello,
you could try this solution
YML-Code
YAML:options: max_warns: 4 dissallowed_muted_cmds: - 'msg' - 'tell' - 'helpop' messages: prefix: "&c&lSuperBans &8» &7" ban_screen_message: - '&7Sadly, you were &cBanned &7from &6ServerName&7. Apply on our forums if you want to dispute your ban!%nl%%nl%' - '%&7Banned by: &a%{sban.bannedby.%{_p}%}%%'
and here is the code for Skript
code_language.skript:on script load: set {superbans.options.max_warns} to yml value "options.max_warns" of file "plugins\Skript\scripts\messages.yml" set {superbans.options.disallowed_muted_cmds} to yml value "options.dissallowed_muted_cmds" of file "plugins\Skript\scripts\messages.yml" set {superbans.messages.prefix} to yml value "messages.prefix" of file "plugins\Skript\scripts\messages.yml" set {superbans.messages.ban_screen_message} to yml value "messages.ban_screen_message" of file "plugins\Skript\scripts\messages.yml"
On my test server, this worked fine
For this solution, you should have WildSkript installed
With kind regards
CookieLand
Very useless solution. If you using YML - use direct returns, not basic variables, or use list variables.
"&7Banned by: &a%{sban.bannedby.%{_p}%}%"
message "%yml value ""XYZ"" of file ""etc\...""%"
colored
List variables are better because:And @Snow-Pyon can tell you the diffrence between list and normal variables.
Can I do this with other dependencies like Skutilities or any other that supports 1.8 to 1.12?Hello,
you could try this solution
YML-Code
YAML:options: max_warns: 4 dissallowed_muted_cmds: - 'msg' - 'tell' - 'helpop' messages: prefix: "&c&lSuperBans &8» &7" ban_screen_message: - '&7Sadly, you were &cBanned &7from &6ServerName&7. Apply on our forums if you want to dispute your ban!%nl%%nl%' - '%&7Banned by: &a%{sban.bannedby.%{_p}%}%%'
and here is the code for Skript
code_language.skript:on script load: set {superbans.options.max_warns} to yml value "options.max_warns" of file "plugins\Skript\scripts\messages.yml" set {superbans.options.disallowed_muted_cmds} to yml value "options.dissallowed_muted_cmds" of file "plugins\Skript\scripts\messages.yml" set {superbans.messages.prefix} to yml value "messages.prefix" of file "plugins\Skript\scripts\messages.yml" set {superbans.messages.ban_screen_message} to yml value "messages.ban_screen_message" of file "plugins\Skript\scripts\messages.yml"
On my test server, this worked fine
For this solution, you should have WildSkript installed
With kind regards
CookieLand
Can I do this with other dependencies like Skutilities or any other that supports 1.8 to 1.12?