priMELval

uuid link macro

Jan 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // Paste into the chat filter
  2. IFMATCHES(%CHATCLEAN%,"^Notice: That (.+) is locked by ([\w\d]+) \(([a-f\d\-]+)\)\.$")
  3. MATCH(%CHATCLEAN%,"^Notice: That (.+) is locked by ([\w\d]+) \(([a-f\d\-]+)\)\.$",{&lockblock,&lockplayer,&uuid})
  4. &json := "[\"\",{\"text\":\"(%&uuid%)\",\"color\":\"yellow\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://namemc.com/profile/%&uuid%\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Click this UUID to open its namemc.com page.\",\"color\":\"red\"}]}}}]"
  5. LOG("&4Notice: &fThat &4%&lockblock% &fis locked by &e%&lockplayer%")
  6. LOGRAW(%&json%)
  7. FILTER()
  8. ENDIF
Advertisement
Add Comment
Please, Sign In to add comment