Chaname
Chaname - ChatNameMentioner for Craftbukkit using the Bukkit-API
This plugin provide a simple syntax for colored private messages. Please leave some feedback how you like it(even if not). :)
How does it work?
Sending a message
The player just need to type:
@receiverName: message
or
@receiverName message
After that the receiver will get a message like this:
<SenderName> message
The <SenderName>
is highlighted with a extra color. The message
also. No one except the receiver can see
the message. If a player want's to mention more than one user he can type:
@receiverName1, receiverName2: message
Configuration
Chaname is using the Configuration API of Bukkit and provide some options to customize your plugin.
General
copyTo
(Default: false)
If this is set to true, the sender will get his message as copy, so it's available in his chat history.
Chaname 0.3.3 BETA - publicMention
(Default: false)
If this is set to true, all online players will receive the message. Just the receiver receive a highligthed message.
Colors
You can define the colors that should be used to highlight the message and the sender.
NOTE: You can only use colors defined by the Bukkit team. See ChatColors for more information.
senderColor
(Default: DARK_AQUA)
Define the color to highlight the sender.
messageColor
(Default: GOLD)
Define the color to highlight the message.
forceColor
(Default: false)
Use this to force using colors defined in the config.yml. Otherwise if e.g. the sender is a admin and his chat color is red, Chaname will keep it by default. Instead of DARK_AQUA you get a red sender color.
Permissions
You can define how is able to use the Chaname through the Permissions API.
General
chaname.mentionMulti
(Default: true)
Define if a user could mention more than one user.
chaname.send
(Default: true)
Define who could send messages with Chaname.
chaname.receive
(Default: true)
Define who could receive messages with Chaname.
Known Bugs
No known bugs actually.
TODO:
-
Adding features:
- custom format? e.g. "[%sender] tell you: %message"
Does this work Aangiix3? I have been looking for something like in Garry's Mod that alerts a player when they are mentioned
Also, does this conflict with EssentialsChat?
@Aangiix3
Sounds bad. :( Sure you get the Chaname 0.3.3? Otherwise you need to be patiently until I could test it. Or did you get any errors?
@Aangiix3
Hey Aangiix3, nice ideas. The first point seems to be very easy to implement. I'm thinking of the second one.
UPDATE: Ok I submitted a beta version. This includes your first idea. I miss some people to test it correctly(in 4 or 5 days I can test it for my own). The rest should work like before.