Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local linkURL = 'http://www.20000blocks.com/viewer.html?mode=model&ver=1&X=8&Y=0'
- print("link is: "..linkURL)
- if linkURL then
- --message text
- local msg_EN = 'The latest game result has been uploaded to the webviewer. ' --' and can be seen at:'..link.readAll()
- local msg_DE = 'Die neueste Runde wurde in den Webviewer geladen. ' -- und kann hier angeschaut werden: '..link.readAll()
- local linkText_EN = 'See it and share it!'
- local linkText_DE = 'Schau es und teile es!'
- local hoverText_EN = 'Click here to see and share the last game!'
- local hoverText_DE = 'Click here to see and share the last game!'
- --message text with the link
- local linkmsg_EN = '["",'..
- '{"text":"'..msg_EN..'","color":"white","bold":false},'..
- '{"text":"'..linkText_EN..'","color":"blue","underlined":true,"clickEvent":'..
- '{"action":"open_url","value":"'..linkURL..'"},"hoverEvent":'..
- '{"action":"show_text","value":{"text":"","extra":'..
- '[{"text":"'..hoverText_EN..'","color":"gold"}]}},"bold":false}]'
- local linkmsg_DE = '["",{"text":"'..msg_EN..'","color":"gold","bold":false},{"text":"'..linkText_DE..'","color":"blue","underlined":true,"clickEvent":{"action":"open_url","value":"'..linkURL..'"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"'..hoverText_DE..'","color":"gold"}]}},"bold":false}]'
- -- announce success in English
- commands.async.tellraw('@a',linkmsg_EN)
- --announce success in German
- commands.async.tellraw('@a',linkmsg_DE)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement