Turning text into links

Discussion in 'Archived: Plugin Requests' started by seriosbrad, Jan 3, 2014.

  1. Offline

    seriosbrad

    I was on a server the other day that turned [Text like this] into a clickable link. Just like an HTML "a href". Been looking through the plugin repository but couldn't find anything.
    Someone mind pointing me in the right direction?
     
  2. Offline

    Minecrafter_NL

    prob. a new feature of 1.7, but i'm not sure
     
  3. Offline

    timtower Administrator Administrator Moderator

    You are right, part of the tellraw features
     
  4. Offline

    seriosbrad

    Cool. Is anyone up to the challenge of creating a plugin for this? I'm going to assume the server I was on had it's own developer for such a thing since I can't find anything in the plugin repository.
     
  5. timtower Can you explain me how to use this? Then I might maybe do it if it wont be too hard :D
     
  6. Offline

    timtower Administrator Administrator Moderator

    Think with sendRawMessage, not sure though because loads of stuff changed with 1.7 ( even sendMessage is gone :'( and sendBlockChange :'( loads of updates needed )
     
  7. timtower Why sendMessage has gone? Iam still using it? :D
    But yeah, sendRawMessage works, thanks!
     
  8. Offline

    timtower Administrator Administrator Moderator

    New chat format stuff, and it is working, but depreciated. Now you have time to switch to the raw stuff ( Hope that there will be an easy way of making those in bukkit )
     
  9. timtower Oh, so sendMessage is replaced by sendRawMessage? Anyway, I still don't know how to change a text to a link when someone clicks on it with that sendRawMessage :D
     
  10. Offline

    timtower Administrator Administrator Moderator

  11. timtower but the sendRawMessage takes just 1 argument, the string? Do I have to perform a command after this with the sendraw thing? :/
     
  12. Offline

    timtower Administrator Administrator Moderator

    I know, the complete raw string that you want to send ( JSON format ). And this is the only thing that you need to do, no command needed
     
  13. timtower aaah so the 1 argument must be that JSON format, even if they are over multiple lines?
     
  14. Offline

    timtower Administrator Administrator Moderator

    That is the idea
     
  15. timtower Just to be sure, this:
    tellraw /say@ahi!
    {
    "text": ""
    }
    is the JSON thing? :D
     
  16. Offline

    timtower Administrator Administrator Moderator

    {"text":"Hi"}
    That will send plain "Hi" to the player but: {"text":"Hi","color":"RED"} Will send this: "Hi", everything in JSON is in brackets
     
    Lionhard likes this.
  17. timtower Uhm, and how would now linking the command work? :S Sry, I dont really understand D:
     
  18. Offline

    timtower Administrator Administrator Moderator

    Lionhard likes this.
  19. Offline

    Desle

    Its pretty complicated, check on the development threads, i saw something about this
     
    Lionhard likes this.
  20. timtower Thank you! I'm really grateful for your help!

    Desle Thanks, I will.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
    timtower likes this.

Share This Page