ChatHighlighter
ChatHighlighter
Overview
ChatHighlighter highlights the mention of anyone's name, whether it be partial or complete, and either displays it to everyone or just the mentioned player.
Commands
Command | Description |
---|---|
/chat reload | Reload ChatHighlighter |
Permissions
Permissions node | Description |
---|---|
chat.highlight | Allows players to see their names highlighted |
chat.admin | Allows players to reload ChatHighlighter |
Features
- ChatHighlighter's more prominent feature is its ability to search through each message and return the exact partition taking into consideration the minimum number of characters to search for. This is possible using an algorithm I designed myself, and is available and explained here
- Choose to use displayname for the sender - if this is set to true, the name of the sender will appear the same, copying over any color formatting; if set to false, it will use the sender's exact name without color formatting, allowing you to create a custom format under the format section.
- Format the appearance of the sender and receiver in chat
- Choose whether to broadcast all highlights to all players, or just the receivers
- Highlight all player names who are mentioned.
- Play a sound when a name is mentioned
Configuration
Formatting
When formatting, any color code can be used, as demonstrated in the template configuration file that is generated when the plugin is first loaded. Note that you must use @sender in the sender section and @receiver in the receiver section, to refer to the names of the players.
Sounds
When you want to use a sound if a player name is mentioned, you must set play to true in the sound section. Any sound in Minecraft can be used; refer to the sound name in the sound section. A list of available sounds can be viewed here NOTE: when you enter a sound name, you can enter it lower case and without underscores (as demonstrated in the template configuration file), however, what you enter MUST be translatable to one of the sound names in the bukkit docs.
For example, 'note piano' is translated to NOTE_PIANO, which will be picked up by bukkit. However, 'note pianooo' is translated to NOTE_PIANOOO, which will not be picked up by bukkit.
Example Configuration
options: minimum: 4 announce: false sender-displayname: false sound: play: true sound: 'note piano' format: sender: '&a@sender > ' receiver: '&a@receiver'
This will search for a username of length 4 or more characters long in player messages. It won't announce it to everyone on the server, it will just send it to the player whose name is mentioned. When the player sees this message, my name (the sender) will be shown in the color Green. If use-displayname is set to true, since the color for the admin group is red on my server, my name will show as red instead. It will play a noteblock piano sound to the player.
Remember, for the name of the sender, use @sender. For the name of the receiver, use @receiver.
I like the plugin, this is what i have been looking for, but Is it possible to make it work based on permissions? I would like only my staff members to get the highlight and audio notifications. As is it now, i tested it and everyone seems to have access to receive notices regardless of permissions used.
also could you add an option to not format the chat an rather just highlight the name within the normal message, as i use essentialschat and it throws of the chat formatting for the player getting the notice.
Love this plugin but it has somewhat a flaw I have a chat plugin called hero chat and pings do not stay in their channels. Would it be possible to have chat channel support? Thank you.
This is a very nice plugin, thanks!
But I have some requests:
Could you make it so that it will only ping if there is a space preceeding and following the name? So 'leather' will not ping 'MrsDeath' etc.
Allow players to enter a command to ignore pings from individual players. I have some very eager pingers on my server...
Also a command for an admin to disable a players ability to ping completely, for those who consistently abuse it.
But otherwise, it's going down really well on my server. Very handy, even if a little annoying sometimes xD
Make it so the receiving displayname can be triggered?
Make it so the chat format can be maintained and only the receiving name is Highlighted?
I have a suggestion,
Add an option for the player's name exactly to trigger highlight?
Maybe require '@chars' to trigger highlight?
@Dragonphase
Great! No rush. Great plugin by the way. It's perfect for when I'm tabbed out and people need me for something.
@buddmckenna
I can do this, but it might take some time.
Would it be possible to add lists of words not to match with a players name? Because depending on what a players name is, there are sometimes false matches. So it would be nice to disable certain words from notifying a player.
good plugin
Big thanks for Updating the Commands! ;-)
@ravand
That is what this does. As for the null pointer exception, I'll look into that. Read the main post to find out about configuring the file. All chat colors work when editing sender and receiver names in chat.
Also, since I'm using an updated configuration file, you should delete your old config.yml and restart your server. This way, any configuration prior to v1.3 of ChatHighlighter will no longer be operational and will cause errors.
http://pastebin.com/9UYkF51U
EDIT: Can't you have it so that the name in chat is green anymore? I only used this plugin because of that feature
Important:
Herochat Conflict with your newest build (/ch)
Some Herochat commands doesn't work, like Channel-change etc.
Good command would be /chh I think, or only /chhreloadconfig, because you plugin has only one command.
See your changelog from last build:
• Removed the /ch command due to HeroChat comfliction
======
Your update rocks, works good so far, With sound -> Super great! ;)
This looks good
@LegndPowerdNube
Yes - I've recently been rewriting this for increased functionality and overall performance.
An awesome feature would be to play an ingame sound for example the sound of pressing a button to the player who has been hightlighted in the chat
Will this ever be updated again?
Hiya, I found a bug; my IGN is Dunkler_Drache and with partial name fill on it only highlights Dunkler and leaves _Drache blank, without it on it doesnt ever highlight it, I dont think it likes the _ character :P
@xjomo
This was intentional due to the amount of space it would take up in the chat message, also, the name needs to fit into the chat message, so adding additional characters to the string will cause an overflow.
Although, you can use the highlight-color: '' option and set a prefix in here. It doesn't have to be entirely colors. you could put anything there, and the plugin will parse it into the chat message, even though original use for this option was for color only.
nice plugin.
found a bug: it removes (PermissonsEX) name prefixes/colours when name is found.