Add more config docs

This commit is contained in:
Draycia committed 2020-09-03 23:29:17 -07:00
1 parent 47e21541f3
commit 3d0e875a4d
2 files changed
+18 -6

No files matched your search

@@ -383,7 +383,7 @@ public class CarbonChatChannel extends ChatChannel {
@Override
public Boolean shouldBungee() {
return getBoolean("should-bungee");
return getBoolean("should-bungee") || getBoolean("is-cross-server");
}
@Override
+17 -5
View File
@@ -63,8 +63,9 @@ default:
color: '#FFFFFF'
# Can players /toggle this channel and hide its messages?
ignorable: true
# Enables/disables cross server chat for this channel
should-bungee: true
# Enables/disables cross server chat for this channel.
# Requires one of the message-system options to be set.
is-cross-server: true
# For plugin compatibility. If true, all chat messages sent will be "canceled".
# The messages will still go through, however other plugins should assume they didn't.
# As such, setting this on private channels is recommended.
@@ -89,9 +90,10 @@ channels:
default: '<gold>Broadcast: <yellow><message>'
staff: '<gold>Broadcast: <yellow><message>'
ignorable: false
should-bungee: false
is-cross-server: false
message-prefix: '!'
# Global context options
contexts:
Towny:
cancellation-message: '<red>You do not belong to a town!'
@@ -105,10 +107,13 @@ item-link-placeholders:
- '[item]'
- '%item%'
# The prefix shown when spying on a user's message
spy-prefix: '<color>[SPY] '
# Determines if the player's tab menu name is updated with /nickname
nicknames-set-tab-name: true
# Plays a sound and highlights the message when someone types your name
pings:
enabled: true
source: 'PLAYER'
@@ -116,8 +121,9 @@ pings:
prefix: '@'
volume: 10.0
pitch: 1.0
highlight: true # independent of the "enabled" option!
# highlight: true # currently disabled and nonfunctional
# Plays a sound when receiving private messages with /whisper /msg
whisper:
pings:
enabled: true
@@ -126,8 +132,11 @@ whisper:
volume: 10.0
pitch: 1.0
# Options:
# 'JSON' - Uses JSON text files to store player data
# 'MySQL' - Uses MySQL to store player data
storage:
type: JSON # JSON, MySQL
type: JSON
username: 'username'
password: 'password'
database: 'database'
@@ -138,6 +147,9 @@ storage:
# 'bungee' - Uses bungee plugin messaging, requires BungeeCord or another proxy which supports it (Velocity!)
# 'redis' - Uses redis for cross server syncing, does not require a server proxy
# 'none' - Do not sync anything cross server, this is the default
#
# Note: In order for channels to sync cross server, you'll need to enable is-cross-server for the
# channel as well as this setting.
message-system: 'none'
redis: