mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +00:00
Add more config docs
This commit is contained in:
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
|
@Override
|
||||||
public Boolean shouldBungee() {
|
public Boolean shouldBungee() {
|
||||||
return getBoolean("should-bungee");
|
return getBoolean("should-bungee") || getBoolean("is-cross-server");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -63,8 +63,9 @@ default:
|
|||||||
color: '#FFFFFF'
|
color: '#FFFFFF'
|
||||||
# Can players /toggle this channel and hide its messages?
|
# Can players /toggle this channel and hide its messages?
|
||||||
ignorable: true
|
ignorable: true
|
||||||
# Enables/disables cross server chat for this channel
|
# Enables/disables cross server chat for this channel.
|
||||||
should-bungee: true
|
# 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".
|
# 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.
|
# The messages will still go through, however other plugins should assume they didn't.
|
||||||
# As such, setting this on private channels is recommended.
|
# As such, setting this on private channels is recommended.
|
||||||
@@ -89,9 +90,10 @@ channels:
|
|||||||
default: '<gold>Broadcast: <yellow><message>'
|
default: '<gold>Broadcast: <yellow><message>'
|
||||||
staff: '<gold>Broadcast: <yellow><message>'
|
staff: '<gold>Broadcast: <yellow><message>'
|
||||||
ignorable: false
|
ignorable: false
|
||||||
should-bungee: false
|
is-cross-server: false
|
||||||
message-prefix: '!'
|
message-prefix: '!'
|
||||||
|
|
||||||
|
# Global context options
|
||||||
contexts:
|
contexts:
|
||||||
Towny:
|
Towny:
|
||||||
cancellation-message: '<red>You do not belong to a town!'
|
cancellation-message: '<red>You do not belong to a town!'
|
||||||
@@ -105,10 +107,13 @@ item-link-placeholders:
|
|||||||
- '[item]'
|
- '[item]'
|
||||||
- '%item%'
|
- '%item%'
|
||||||
|
|
||||||
|
# The prefix shown when spying on a user's message
|
||||||
spy-prefix: '<color>[SPY] '
|
spy-prefix: '<color>[SPY] '
|
||||||
|
|
||||||
|
# Determines if the player's tab menu name is updated with /nickname
|
||||||
nicknames-set-tab-name: true
|
nicknames-set-tab-name: true
|
||||||
|
|
||||||
|
# Plays a sound and highlights the message when someone types your name
|
||||||
pings:
|
pings:
|
||||||
enabled: true
|
enabled: true
|
||||||
source: 'PLAYER'
|
source: 'PLAYER'
|
||||||
@@ -116,8 +121,9 @@ pings:
|
|||||||
prefix: '@'
|
prefix: '@'
|
||||||
volume: 10.0
|
volume: 10.0
|
||||||
pitch: 1.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:
|
whisper:
|
||||||
pings:
|
pings:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -126,8 +132,11 @@ whisper:
|
|||||||
volume: 10.0
|
volume: 10.0
|
||||||
pitch: 1.0
|
pitch: 1.0
|
||||||
|
|
||||||
|
# Options:
|
||||||
|
# 'JSON' - Uses JSON text files to store player data
|
||||||
|
# 'MySQL' - Uses MySQL to store player data
|
||||||
storage:
|
storage:
|
||||||
type: JSON # JSON, MySQL
|
type: JSON
|
||||||
username: 'username'
|
username: 'username'
|
||||||
password: 'password'
|
password: 'password'
|
||||||
database: 'database'
|
database: 'database'
|
||||||
@@ -138,6 +147,9 @@ storage:
|
|||||||
# 'bungee' - Uses bungee plugin messaging, requires BungeeCord or another proxy which supports it (Velocity!)
|
# '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
|
# 'redis' - Uses redis for cross server syncing, does not require a server proxy
|
||||||
# 'none' - Do not sync anything cross server, this is the default
|
# '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'
|
message-system: 'none'
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
Reference in new issue
Block a user