Enjin profile opener

Discussion in 'Archived: Plugin Requests' started by 15987632, Mar 12, 2014.

  1. Offline

    15987632

    Plugin category: Mechanics?

    Suggested name: enjin profile opener

    What I want: you put your enjin website in a config. When a player clicks on a players name in chat for example
    [15987632] hi
    The 15987632 part not the hi part

    It would go to your enjin profile. This would require use of the enjin API that I think is here http://www.enjin.com/apidocumentation. it would bring you to <your website>.com/profile/<random number> but I want the .com part to also be in the config because other people could use .net or .org and stuff. This would bring you to the players profile on enjin when you click on there name :) also I would like nicknames from essential not to Effect the profile it goes to for example if I'm 15987632 and my nick is numbers than it would still go to the profile 15987632

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: none needed

    When I'd like it by: ASAP but take your time :)
     
  2. Offline

    DrEinsteinium

    I like this idea and I could use it for my own purposes. I'll do it when I get time :) It could be today or tomorrow.
     
  3. Offline

    15987632

  4. Offline

    DrEinsteinium

    15987632 I haven't forgotten about this! I'm going to try and get it done this afternoon. For anyone interested on how I am going to get this accomplished, I am going to use the built in Enjin API. However, I'm not sure how you can set it to make their name link to their profile... gotta figure that one out if it's possible.
     
  5. Offline

    15987632

    DrEinsteinium I am positive it is possible I have seen something very similar done but I don't think u need to use the enjin API because all it does is link you the way you would normally click on a link in minecraft
     
  6. Offline

    DrEinsteinium

    15987632 Well not every user has a profile on your website or an Enjin account attached to their Minecraft character, so that is why the Enjin API must be used to get the users from your site and compare them with the names of the people on your server.
     
  7. Offline

    15987632

    DrEinsteinium true that my bad I guess I was making a bad assumption that every1 would be on the forums lol
     
  8. Offline

    BrushPainter

    DrEinsteinium Not really, it can check if the player has a linked account with Minecraft on Enjin and if it is true, put your link format and at the end get the players username.
     
  9. Offline

    DrEinsteinium

    BrushPainter That's what I was going to do. I guess I didn't explain it 100% :p I still have no idea how to use the player's name as a link.
     
  10. Offline

    BrushPainter

  11. Offline

    15987632

    BrushPainter that is where the API comes in I guess
    DrEinsteinium I know it's possible I have seen it done maybe timtower knows sry if I am putting you on the spot Tim I know u are helpful with these things
     
  12. Offline

    BrushPainter

    15987632 True, I haven't checked out the config so I'm not sure.
     
  13. Offline

    MarkehMe

    I was actually working on something similar.. I'll post a link to the project when it's done.
     
  14. Offline

    15987632

    MarkehMe what is ur project about if I may ask
     
  15. Offline

    15987632

  16. Offline

    15987632

    Bump and edited post
     
  17. Offline

    15987632

  18. Offline

    15987632

  19. Offline

    15987632

  20. Offline

    15987632

  21. Offline

    jwa1

    Seems like they both disappeared from the face of the earth...

    I had some interest in this plugin as well :(
     
  22. Offline

    15987632

  23. Offline

    15987632

  24. Offline

    15987632

  25. Offline

    15987632

  26. Offline

    Rojet601

    If somebody wants to make this, there is a clickEvent open_url for json text, that can be used to make the playername clickable. The other thing you have to do is associating the minecraft IGNs with enjin IDs. For that you can send a POST request to WEBSITEURL/api/get-users/ with characters=1 to also get the minecraft names for each enjin user. They only return a maximum of 10000 players, so if the server is big you also have to supply a page=? POST argument to get more users.

    The only REALLY tricky thing is isolating the playername from the chatmessage to give it the clickevent, but to keep all the other formatting intact, while working with every possible ChatManager :D
     
  27. Offline

    15987632

  28. Offline

    15987632

  29. Offline

    timtower Administrator Administrator Moderator

    15987632 I throw a maybe I will make this on here.
    Config will contain a partial link to a web page that you have to make, probably the best is by making a page with a get request, do you want to send the uuid or playername?
     
  30. Offline

    15987632

    I don't really understand this part if you could further explain it eould be appreciated. Also I'm not sure if the enjin API has uuids yes but if it does I would like them.
     

Share This Page