BetterChat | Chat-System
BetterChat by Moertel
BetterChat
Description
This Plugin allows you to configure the whole Chat of your Server! You can change the color of Players names, add prefixes or suffixes and even change the color of their message! The greatest thing about this is, that is has a LIVE PREVIEW feature! You can make changes to your groups and see them instantly online! No update needed, no restart or reload either!
It is now possible to configure your tablist aswell. You can configure group related prefixes, name colors and suffixes in your tablist!
Works perfectly in combination with my PlayerChatTag Plugin!
Permission
You will create your own Permissions by adding a group for each JSON-Object!
- betterchat.<group>
Commands
/betterchat reload (/bc rl in short)
This command wil reload the config.yml to enable/ disable settings you've changed in it.
Configuration
Default config.yml + explination
TABLIST: // if enabled is false, every 'TAB-' Option will be disabled aswell ENABLED: false // enable or disable to show prefixes in tablist TAB-PREFIX: false // enable or disable to change player colors in tablist TAB-NAMECOLOR: false // enable or disable to show suffixes in tablist TAB-SUFFIX: false
Written description
Each group consists of five variables:
- group -> is used as permission (see Permissions headline)
- prefix -> adds a prefix to the players name, for example to display ranks
- name -> changes to players name or color; %NAME% will be replaced with the actual name
- suffix -> adds a suffix to the players name, for example to point to the message
- color -> changes the actual message color
- tab-prefix -> adds a prefix to the player in your tablist
- tab-namecolor -> changes the color of the players name in your tablist
- tab-suffix -> adds a suffig to the player in your tablist
A group is defined in a JSONObject which will look like this:
{ // OPENS THE JSON OBJECT "group":"owner", // SETS THE GROUP NAME AND THEREFORE THE PERMISSION "prefix":"&4&lOWNER ", // OWNER PREFIX FOR PLAYER WITH PERMISSION betterchat.owner "name":"&c%NAME%", // NAME WILL BE IN RED "suffix":"&f -> ", // SUFFIX WILL BE A WHITE ARROW POINTING TO PLAYER-MESSAGE "color":"&9", // MESSAGE COLOR WILL BE BLUE "tab-prefix":"&4&lOWNER ", // OWNER TABLIST PREFIX FOR PLAYER WITH PERMISSION "tab-namecolor":"&c", // TABLITS NAME WILL BE RED "tab-suffix":" [&aWadUp&f]" // TABLITS SUFFIX WILL BE '[WadUp]' } // CLOSES JSON OBJECT
It is possible to use color-codes as you can see in the example!
If you want to add another JSONObject to the JSONArray (which is the two square brackets), you only have to seperate them with a comma!
Every JSONObject has to be inbetween the two square brackets and therefore in the JSONArray.
You dont have to define every of those five variables. The only variable you have to define for the permission to exist is the group variable!
Every missing variable will be replaced with their default values:
"prefix":"", // EMPTY "name":"<%NAME%>", // NAME IN TRIANGULAR BRACKETS "suffix":" ", // ONE BLANKSPACE "color":"&f" // WHITE "tab-prefix":"" // EMPTY "tab-namecolor":"&f" // WHITE "tab-suffix":"" // EMPTY
config.json example + how it looks!
The second Message is the default one. This is how it looks when you have a group that doesn't exists or dont have one at all.
Video Tutorials
Newest:
Older Versions:
v1.0
so i can tu owner but for member doesnt work
hi mortelman
im iranian so my english is alittle bad sorry :}
i do what do you say in video
i use craftbukkit 1.12.2
but it doesnt work why?
Only the default group works? Ive tried making another one and gave one of the ranks the node for it... and their rank is still stuck to the default one
In reply to ItsJustTriz:
So is there a way to have more than just 2 groups, like a default, an admin, and a member like you see in this video, in which case how do I make some people have admin, and the rest have default?
In reply to Sesadre:
Hi. Does vault support this plugin?
I've got my config json and yml files set up as show below but the tablist options aren't working. The permissions are correct because the chat options are working as expected.
JSON:
[
{ "group":"admin", "name":"<&6%NAME%&f>", "tab-namecolor":"&6" },
{ "group":"moderator", "name":"<&1%NAME%&f>", "tab-namecolor":"&1" }
]
YML:
TABLIST:
ENABLED: true
TAB-PREFIX: false
TAB-NAMECOLOR: true
TAB-SUFFIX: false
In reply to BrickWaffle:
In reply to MoertelPlayz:
I got the same issue on a server where I only have luckperms and Betterchat installed. I got exactly the same config and my config.json file is looking like this:
I'm using Spigot 1.13.2
In reply to patri9ck:
In reply to MoertelPlayz:
How is it going so far?
Hello, since the new version 1.1, the tag {jobs} from JobsReborn plugin doesn't work anymore and the the new tab-prefix and tab-namecolor too.
My config : http://pasted.co/a9194287
My JSON Array : http://pasted.co/5cebb8b7
Thanks for reading me and have a good day.
I recommend this amazing plugin, really easy to use, efficient and adaptive to new variables such as jobs !
It has a really good tutorial so if you got troubles with your groups colors just make sure to watch it until the end.
Keep up like this !
In reply to ltsquellette:
This is great! Keep up the great work!
In reply to Mrslayer6409: