D
Deleted member
Skript Version (do not put latest): Skript 2.2 (dev36)
Skript Author: Bensku
Minecraft Version: 1.12.2
So I was making a gamemode switch skript, which looked very similar to this, except there were arguments for a language other from English as well.
Full Code:
Errors on Reload:
I am currently not at home or somewhere where I can access the server and see the exact error, but it was about it not understanding the "or" expression. After further reading it turns out, that Skript doesn't support multiple arguments for "or".
Addons using (including versions):
Skellett 1.9.6B
Troubleshooting:
I tried placing the "or" statements into brackets, like below, but they did not work:
if ( ( ( arg 1 is "survival" ) or ( arg 1 is "s" ) ) or ( arg 1 is "0" ) )
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? See: Troubleshooting
So, is there a solution to this, or do I have to use something like this?
It would be nice if this could be avoided.
Any help would be apprichiated
Skript Author: Bensku
Minecraft Version: 1.12.2
So I was making a gamemode switch skript, which looked very similar to this, except there were arguments for a language other from English as well.
Full Code:
code_language.skript:
command /gamemode <gamemode>:
trigger:
if arg 1 is "survival" or arg 1 is "s" or arg 1 is "0":
set player's gamemode to survival
message "Your gamemode has been set to survival." to player
else if arg 2 is "creative" or arg 1 is "c" or arg 1 is "1":
set player's gamemode to creative
Errors on Reload:
I am currently not at home or somewhere where I can access the server and see the exact error, but it was about it not understanding the "or" expression. After further reading it turns out, that Skript doesn't support multiple arguments for "or".
Addons using (including versions):
Skellett 1.9.6B
Troubleshooting:
I tried placing the "or" statements into brackets, like below, but they did not work:
if ( ( ( arg 1 is "survival" ) or ( arg 1 is "s" ) ) or ( arg 1 is "0" ) )
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? See: Troubleshooting
So, is there a solution to this, or do I have to use something like this?
code_language.skript:
if arg 1 is "creative" or arg 1 is "c":
set player's gamemode to creative
else if arg 1 is "1":
set player's gamemode to creative
It would be nice if this could be avoided.
Any help would be apprichiated