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:

  1. group -> is used as permission (see Permissions headline)
  2. prefix -> adds a prefix to the players name, for example to display ranks
  3. name -> changes to players name or color; %NAME% will be replaced with the actual name
  4. suffix -> adds a suffix to the players name, for example to point to the message
  5. color -> changes the actual message color
  6. tab-prefix -> adds a prefix to the player in your tablist
  7. tab-namecolor -> changes the color of the players name in your tablist
  8. 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!

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

 


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    304386
  • Created
    Oct 7, 2018
  • Last Released File
    Oct 19, 2018
  • Total Downloads
    2,561
  • License

Categories

Members

Recent Files