Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /link:
- trigger:
- set {_e} to random 8 char string from charset `a-zA-Z0-9`
- set {LIQUIDICE::code::%{_e}%} to player
- message "[DISCORD]: Your linking code: %{_e}%"
- discord command link [<text>]:
- bots: LI
- prefixes: ;
- trigger:
- if arg 1 is not set:
- reply with "Usage: ;link <code> | If you do not have a code, type ""/link"" in-game."
- else if {LIQUIDICE::code::%arg 1%} is not set:
- reply with "Invalid code, please generate a new one via ""/link"" in-game."
- else if {LIQUIDICE::code::%arg 1%} is set:
- set {LIQUIDICE::discord::%id of event-member%::player} to {LIQUIDICE::code::%arg-1%}
- set {LIQUIDICE::discord::%id of event-member%} to id of event-member
- reply with "Your minecraft account: %{LIQUIDICE::code::%arg-1%}% has been linked to your Discord account!"
- set {LIQUIDICE::discordAcc::%id of event-member%} to {LIQUIDICE::code::%arg-1%}
- set discord nickname of event-member to "%{LIQUIDICE::code::%arg-1%}%"
- add role with name "[VERIFIED]" to roles of event-member with event-bot
- delete {LIQUIDICE::code::%arg-1%}
- else:
- reply with "uh oh something went wrong"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement