I'm trying to make a Skript where if a server uses MyBB forums, players can link their profile by setting their profile id to a variable, and server owners can use the variable in other Skripts. However, I want to make it so the user does the command '/linkmyforums {insert MyBB profile URL here}' and it splits the url at = so it only get's the UID.
Here's my forums profile:
https://forums.spectralmc.tk/member.php?action=profile&UID=1
I want it to set the variable to the 1 in that URL. Here's my current code:
When reloading the skript, I get this error...
Here's my forums profile:
https://forums.spectralmc.tk/member.php?action=profile&UID=1
I want it to set the variable to the 1 in that URL. Here's my current code:
code_language.skript:
command /linkmyforums [<string>]:
trigger:
if arg-1 is not set:
send "{@ErrorColor}{@B}No Profile Found! Please do {@SecondaryColor}/linkmyforums <your profile URL>" to player
else if arg-1 contains "member.php?action=profile": #This is to verify that it's a valid MyBB URL
set {profileid.%player%} to arg-1 split at "="