Configuration
Configuration
Config File
After running RoyalChat on your server once, a new file called config.yml
will be in [your minecraft folder]/plugins/RoyalChat/
. This is where you'll be able to change the chat format.
By default, it looks like this:
chat-format: '{prefix}{group}{suffix} {dispname}&f: {message}'
me-format: '&d * &b{dispname}&d {message}'
say-format: '&d[Server] {message}'
first-word-capital: false
highlight-at-user: true
smoke-at-user: true
highlight-urls: true
Variables
In chat-format
, you can use several different variables. They are as follows:
{prefix}
- Permissions prefix{suffix}
- Permissions suffix{group}
- Permissions group{name}
- Name of the player{dispname}
- Display name of the player (set by /nick in Essentials, etc){message}
- Message sent by the player{townyprefix}
- The prefix (e.g. Hermit, etc.) set by Towny{townysuffix}
- The postfix set by Towny{townytitle}
- The title set by a nation in Towny{townysurname}
- The surname set by a nation in Towny{townytown}
- The town name of the player{townynation}
- The nation name of the player
All Towny variables are for v0.0.4 and above
Custom Config
The chat format is very versatile. In fact, you could even do something like this:
chat-format: '"{message}&f," says {dispname}&f.'
Note that you must escape single-quotes with a backslash.
Yes, RoyalChat does support color codes &a-f and 0-9.
All of this applies to me-format
& say-format
as well.
Hey, I get this error if i use variable, {townytown}. Error: http://pastebin.com/8tzZxTeu The error is not shown on startup, only when a player try to chat
Hey - I've been browsing chat plugins for a while now, trying to find a specific feature that none seem to have:
Having a permission node represent a prefix, and having multiple nodes display multiple prefixes. So in the config, you could have
and then in somebody's permissions, have both royalchat.donator and royalchat.moderator, so when somebody with those nodes types, it'll come up with [Mod] [$] in chat.
That would be a feature that I'd definitely use your plugin for if it had that support, and since you don't have anything on your planned list, I thought I might as well request it here.
@acetech09
You could set up a permissions group for moderators, and assign the group to individuals as needed.... any number of chat plugins will then allow a per-group prefix to be added to chat like you want.
Can I set different chat formats for different permissions groups like with EssentialsChat
eg.
chat-format: '&8[&7{dispname}&8] &f{message}'
chat-format-staff: '&8[&e{group}&8] &e{message}'
and then give for example, royalchat.staff to give users the staff format
Am I right that I can't set per-group chat format? As LordMarkXD said, for each group a different chat format? I want to set the chat-message color different for each group, but if I am right that is not possible currently?