Chat Channels is a simple plugin. There are 3 default channels - STAFF, LOCAL and GLOBAL. Staff chat is self explanatory, local chat is proximity based and global is like normal chat.
You can configure these channels from the config.yml:
Code (YAML):
# Plugin by: LightFury102
# File version (do NOT edit):
file-version
: 1.8
prefix
:
"&b[ChatChannels] &r"
no-permission
:
"&cYou cannot switch to that channel!"
# Example: "[GLOBAL] <clonkc> Hello World!"
# -> %player% = Player that sent the message
# -> %message% = The message that was sent
global-chat-format
:
"&6[GLOBAL] &7<%player%&7> &f%message%"
proximity-radius
: 10.0
# Float
# Example: "[LOCAL] <clonkc> Hello World! (Distance: 5.4 blocks)"
# -> %player% = Player that sent the message
# -> %message% = The message that was sent
# -> %blocks% = Distance from player to receiver.
proximity-chat-format
:
"&a[LOCAL] &7<%player%&7> &f%message% &7(Distance: %blocks% blocks)"
lonely
:
"&cNo one could hear you... Your message was lost in the wind."
# Example: "[YOU] <clonkc> Hello World! (2 players received)"
# -> %player% = The player's name
# -> %message% = The message that was sent
# -> %receivercount% = The amount of players that received the message.
self-format
:
"&b[YOU] &7<%player%&7> &f%message% &7(%receivercount% players received)"
# Example: "[STAFF] <clonkc> Hello World! (Survival | 25, 11, -224)"
# -> %player% = Player that sent the message
# -> %message% = The message that was sent
# -> %world% = The world the staff member is in
# -> %coordinates% = The location of the staff member
staff-format
:
"&c[STAFF] &7<%player%&7> &f%message% &7(%world% | %coordinates%&7)"
# NOTE: Has to be one character, or your messages will turn out interesting.
staff-chat-key
:
"#"
# Example: "[ChatChannels] You switched to the trade channel"
# -> %channel% = The channel that the player switched to.
switch-channel
:
"&aYou switched to the &e%channel% &achannel"
# The placeholder for the player name when the console sends a message
console-player
:
"&4[CONSOLE]"
reload-message
:
"&aChatChannels reloaded!"
Now for the best part: Creating custom channels.
You can create your own channels with the placeholders from other channels too.
Code (YAML):
# File version (do NOT edit):
file-version
: 1.2
# Layout:
# ChannelName:
# format: "yourFormat (Optional placeholders: %player%, %message%, %coordinates%, %world%, %blocks%"
# Example:
# testchannel:
# format: "&e[TEST] &7<%player%&7> &f%message% &7(Loc: %coordinates% | World: %world% | Blocks: %blocks%)"
# Some ideas:
# trade:
# format: "&d[TRADE] &7<%player%&7> &f%message% &7(%coordinates%&7)"
# help:
# format: "&9[HELP] &7<%player%&7> &f%message% &7(%world% | %coordinates%&7)"
Permissions:
chatchannels.reload - Reloads the configuration files
chatchannels.staff - Access the staff chat
chatchannels.global - Access the global chat
chatchannels.local - Access the proximity chat
chatchannels.see.<channelname> - View a premade/custom channel.
chatchannels.switch.<channelname> - Switch to a premade/custom
Commands:
/chat <channel> - Toggleswitch to a premade/custom channel (messages sent from thereon after will be sent to this channel.)
/chatchannels reload - Reload the plugin
/global <message> - Send a message to the global chat (Aliases: g,gc,globalchat,chatglobal,ac)
/staff <message> - Send a message to the staff chat (Aliases: sc,staffchat,staffmsg)
/local <message> - Send a message to the local chat (Aliases: lc,localchat,localmsg,al)
More Information and help:
To talk in the staff channel, there is a config key called 'staff-chat-key' which you can edit, When sending a message, you can use <key><message> and it will send a message straight to the staff chat, provided you have the necessary permissions.
The radius of the local chat is configurable via the config key 'proximity-radius'. The key 'lonely' will be sent when the player does not have any players within the proximity radius range.
There is an easter egg hidden in the plugin. (Extremely easy hint: You don't need to put it in your plugins folder.)
The channel you are in will persist after the player logs out, so you can keep the channel you are in.
Custom-made channels will not tab-complete. If you want a custom channel made specifically that can be tabbed, please send me a message on spigot or DM me on discord:
aaaajhgsdrn#8095