RangedColorChat {Simple [At Least I think]}

Discussion in 'Archived: Plugin Requests' started by KingKrafter, Jul 27, 2014.

  1. Offline

    KingKrafter

    Plugin category: Chat Management

    Suggested name: RangedColorChat or RangedChat

    What I want: Hello, what I need is a plugin what checks where the player is at and then decides what color there message is. For example if a player is close to you it is &f. If they are a little farther &7 and then &8. Also here is the format [Rank]Name: Message

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed {at least I don't think :p}

    When I'd like it by: As soon as possible. Im in no rush and it is not essential for my server just a addon I would like for one of my future updates.
     
  2. Offline

    Reptar_

    I'll see if I can do this. I'm a beginner, so if I can't, you'll have to have someone else do it! :p

    Ran out of time to do it. Plus I had some problems such as getting the rank of the player and the chat format. For anyone who wants to take over, here's my code:

    http://pastebin.com/tu40wcuE

    Sorry I couldn't get this done. Like I said, I'm still a beginner. :3

    Whoever finishes this, would you mind telling me what I did wrong/right and explain how you got your code to work? Thanks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  3. Online

    timtower Administrator Administrator Moderator

    Reptar_ Use the recipient list instead of sending new messages.
    If you remove a player from that list then they won't receive the message.
     
  4. Offline

    MrEditor97

    Might look into this, but would be hard because each message would have to be a different colour for every person it is being sent to, which will probably cause server lag.
     
  5. Offline

    Reptar_

    How exactly do I access that list? Never knew that existed. . . xP

    Don't forget about multi-world ranged chat. >.<
     
  6. Online

    timtower Administrator Administrator Moderator

    Reptar_ ASyncChatEvent ( or whatever ) .getReceipents()
    Returns a Set<Somethinghere>
    Remove a player from it and he wont get the message
     
  7. Offline

    Reptar_

    Interesting. I'll give it a try when I get off work.
     
  8. Offline

    MrEditor97

    If I can forget about the multi world chat, it could be individual for each world, would make it allot easier. But it displays in a different colour when people are in different worlds? or?
     
  9. Offline

    Reptar_

    Maybe just &8 for players in different worlds, since they are a long distance away.
     
  10. Offline

    MrEditor97

    Okay, will start making once I have finished making a different plugin.
     
  11. Offline

    Reptar_

    I've got the time again, so I'm working on it some more. Actually figured out how to fix a lot of stuff. Should be done later today.
     
  12. Offline

    MrEditor97

    Well what ever you got, share it and maybe we will be able to sort it all out.
     

Share This Page