![[IMG]](/proxy/image?url=https%3A%2F%2Fi.goopics.net%2F0adjq5.png)
What is a channel?
A channel is like an entire and independent chat, you can send a message in a channel in a specific world and use another channel in another world. You can set range, permissions, world and others.
Features:
- Create unlimited channels with custom range, permission to use, permission to see, world restricted, must be inside to see message, format, ...
- Override symbol to force a channel without using command
- Capitalize first letter
- Dot at the end of a message
- Chat color and format
- Mention players
- Anti-spam
- Anti-capslock
- Anti-ads
- Min size message
- Bad words protector
- Save entire messages
- Support placeholder like PlaceholderAPI.
- Clear chat
- Switch between channels
Commands :
Code (Text):
/kareload: Reload the config file
/channel [channel] [player] [-fp (force permission)] [-fw (force world)] [-f (force all)]: Change the channel of someone, or you by default
/channels: List all listable channels (and select one by clicking on it)
/clearchat [-a (everyone)]: Clear the chat
Permissions :
Code (Text):
kachat.bypass.*: Allow the player to bypass all security
kachat.bypass.color: Allow the player to use color and format in chat
kachat.bypass.capslock: Bypass anti-capslock system
kachat.bypass.spam: Bypass anti-spam system
kachat.bypass.ads: Bypass anti-ads system
kachat.bypass.words: Bypass blocked words system
kachat.bypass.cooldown: Bypass cooldown system
kachat.bypass.minsize: Bypass message min size
kachat.cmd.channel: Allow player to change channel through /channel
kachat.cmd.channel.others: Change the channel of a player
kachat.cmd.channel.force: Allow the player to force use channel even if he doesn't have the permission
kachat.cmd.channels: Allow player to change channel through /channels
kachat.cmd.reload: Allow player to reload config file and load changes
kachat.cmd.clearchat: Allow player to clear the chat
kachat.cmd.clearchat.all: Allow player to clear for everyone
kachat.playercolor.<colorcode>: Will be use to replace {color} placeholder
kachat.chatcolor.channel.<colorcode>: Will be use to replace {chat_color} placeholder for a specific channel
kachat.chatcolor.<colorcode>: Will be use to replace {chat_color} placeholder
Placeholders :
- KAChatAPI:
- {message}: The message sent by the player (real message)
- {channel}: The player's channel prefix
- {color}: The player's color (white or red if OP)
- {chat_color}: The player's channel color
- {player}: The player's name
- More will be added soon.
- PlaceholderAPI:
- List of placeholders
- Be sure to download the extension you need by doing the command : /papi ecloud download
- Vault:
- {vault_eco_name}: Name of the economy plugin
- {vault_eco_money}: Balance of the player
- {vault_eco_money.2f}: Balance of the player with 2 decimals
- {vault_eco_currency_name}: Name of money
- {vault_eco_currency_name_plural}: Name of money in plural
- {vault_chat_name}: Name of the chat plugin
- {vault_chat_player_prefix}: Player's primary group prefix
- {vault_chat_player_suffix}: Player's primary group suffix
- {vault_chat_player_primary_group}: Player's primary group
- {vault_perm_group}: Name of the permission plugin
API :
This plugin provides a full access API.
You can register new channel, new checker, new formatters, new placeholders and change the behaviour of sent message and almost everything.
It also provides news events :
- ChannelPreSendEvent (cancellable)
- ChannelReceiveMessageEvent
- PlayerUpdateChannelEvent
- MessageNotSendEvent
A bigger documentation about the API and this plugin is available on github :
https://github.com/Kakumi/KAChat
Example of config :
Code (Text):
lang: "en" #Name of the file for messages
usePrefix: true #Use prefix for each message
security:
minSize: 0 #Min size of the message
antiCapslock:
enable: true
percent: 70 #If total of caps are 70% or more, the message will be blocked
antiSpam:
enable: true
max: 3 #Allow to send X times the same message
antiAds: true #Blocks URLs and servers API
badWords: #Blocks these words
- "fuck"
save:
enable: false
interval: 60 #seconds between each save, must not be too low or too high
notification:
mention:
enable: true
symbolToUse: "" #When you write a player name, this must be before the player to activate the mention
symbolToSee: "@" #It will replace symbolToUse with this icon to set something like : @Kakumi
color: "&e" #Color of the mention
sound: true #Play sound
grammar:
capitaliseFirstLetter: true #Capitalize first letter of the message
forceDotAtTheEnd: true #Put a dot at the end of the message
chat:
format: "{channel} {color}{player}§7: {chat_color}{message}" #Default format
defaultChannel: "global" #ID of a channel from chat.channels
showRestrictedChannels: true #show channels even if the player doesn't match restriction
channels:
global:
enable: true
listed: true #List this channel when you used /channel
autoWorld: "" #Automatically use this channel if player has the permission to use in this world
prefix: "" #Prefix for this channel
command: "global" #ID / Name of this channel (also use with /channel)
color: "&f" #Color of the chat
insideRestriction: false #Must be inside to receive messages
world: "" #Use this channel only inside this world
range: 0 #Only players inside this range can receive the message
permissionToUse: "" #Permission to use this channel (/channel)
permissionToSee: "" #Permission to see message from this channel
cooldown: 0 #Cooldown between each message for this channel
custom:
my_flag: true #Useful for API and create your own behaviour
proximity:
enable: true
listed: true
autoWorld: "world_nether"
prefix: "&7[&8Proximity&7]"
command: "prox"
color: "&e"
cooldown: 5
insideRestriction: false
world: "world_nether"
range: 50
permissionToUse: ""
permissionToSee: ""
format: "&6{player}&7: {chat_color}{message}"
staff:
enable: true
listed: true
autoWorld: ""
prefix: "&8[&cStaff&8]"
command: "staff"
color: "&f"
cooldown: 0
insideRestriction: false
world: ""
range: 0
permissionToUse: "kachat.channel.staff"
permissionToSee: "kachat.channel.staff"
overrideSymbol: "$"
overrideWords: []