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 } 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.
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! 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.
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.
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.
How exactly do I access that list? Never knew that existed. . . xP Don't forget about multi-world ranged chat. >.<
Reptar_ ASyncChatEvent ( or whatever ) .getReceipents() Returns a Set<Somethinghere> Remove a player from it and he wont get the message
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?
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.