Advertisement
KnightRanger

[WORKING] Discord-Minecraft Linkage

Feb 20th, 2020
1,071
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. command /link:
  2. trigger:
  3. set {_e} to random 8 char string from charset `a-zA-Z0-9`
  4. set {LIQUIDICE::code::%{_e}%} to player
  5. message "[DISCORD]: Your linking code: %{_e}%"
  6.  
  7. discord command link [<text>]:
  8. bots: LI
  9. prefixes: ;
  10. trigger:
  11. if arg 1 is not set:
  12. reply with "Usage: ;link <code> | If you do not have a code, type ""/link"" in-game."
  13. else if {LIQUIDICE::code::%arg 1%} is not set:
  14. reply with "Invalid code, please generate a new one via ""/link"" in-game."
  15. else if {LIQUIDICE::code::%arg 1%} is set:
  16. set {LIQUIDICE::discord::%id of event-member%::player} to {LIQUIDICE::code::%arg-1%}
  17. set {LIQUIDICE::discord::%id of event-member%} to id of event-member
  18. reply with "Your minecraft account: %{LIQUIDICE::code::%arg-1%}% has been linked to your Discord account!"
  19. set {LIQUIDICE::discordAcc::%id of event-member%} to {LIQUIDICE::code::%arg-1%}
  20. set discord nickname of event-member to "%{LIQUIDICE::code::%arg-1%}%"
  21. add role with name "[VERIFIED]" to roles of event-member with event-bot
  22. delete {LIQUIDICE::code::%arg-1%}
  23. else:
  24. reply with "uh oh something went wrong"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement