Formatting and Config

This page will explain some of the formatting and config options available in PExChat.

Format

Inside plugins/PExChat/config.yml you will find the line "message-format" This is the line you need to edit to change the format of chat messages, it can contain characters, colour codes, and variables. To use colours use the standard Minecraft colour codes found here

Available variables

+prefix - The prefix for this user, or this users group if they don't have one defined.
+suffix - The suffix for this user, or this users group if they don't have one defined.
+name - The users name
+displayname - The users display name (Set by plugins such as Towny)
+groups - All the groups a user is in (see below)
+group - The users group
+healthbar - A visual health bar for this user
+health - The users current health value (Between 0 and 20)
+message - The message the player typed
+world - What world the player is currently in
+time - Timestamp, configurable in config.yml. Uses the format for SimpleDateFormat

Example (Default):
message-format: '[+prefix+group+suffix&f] +name: +message'

Variables

You also have the option of having an unlimited amount of custom variables in the form of +{varname}. These variables are defined in the Permissions config file under the 'info' header of either the user or the group, the same as a prefix. If these variables contain the static variables such as +prefix, +suffix, +health, etc then those variables will be replaced with their respective values. If a variable does not exist then it will be replaced with a blank string.

This example will show the users health where +{var1} is located:

groups:
    Admins:
        default: false
        options:
            var1: '[+health]'

Config

censor-list - A comma-separated list of single-quoted words to censor, make sure to have [ and ] around the list
censor-colored - Whether or not to color censored words
censor-string-color - The color of normal text, what the plugin sets text after a censored word to
censor-color - The color code to place before the censored word
censor-char - The character to replace censored words with
message-format - The message format as described above
multigroup-format - See the multigroup page for more information
me-format - The message format used for /me, follows same format as message-format
date-format - This variable determines the format output by the +time tag


Comments

Posts Quoted:
Reply
Clear All Quotes