Hello everybody.
Lately I haven't been able to properly define a skript variable.
Indeed I would like to use the condition : if "% event-region%" contains {my_variable}:
However I would like to be able to modify {my_variable} to be able to add or remove text.
For example if the variable is set to "test" with a command i want to add "test2" the result will be "test test2".
Here is the skript code so you can understand why i need this and if it's possible or not.
Thank you for your help !
Lately I haven't been able to properly define a skript variable.
Indeed I would like to use the condition : if "% event-region%" contains {my_variable}:
However I would like to be able to modify {my_variable} to be able to add or remove text.
For example if the variable is set to "test" with a command i want to add "test2" the result will be "test test2".
Here is the skript code so you can understand why i need this and if it's possible or not.
Code:
on region enter:
if {offcompass::*} is set:
if "%event-region%" contains {my_variable}:
if player's group is "Master":
execute command "/pex user %player% add -worldedit.navigation.jumpto.tool"
execute command "/pex user %player% add -worldedit.navigation.jumpto.command"
on region exit:
if {offcompass::*} is set:
if "%event-region%" contains {my_variable}:
if player's group is "Master":
execute command "/pex user %player% remove -worldedit.navigation.jumpto.tool"
execute command "/pex user %player% remove -worldedit.navigation.jumpto.command"
Thank you for your help !