From 3d0e875a4d77f75897b47781fb8ed8cb1e63ae57 Mon Sep 17 00:00:00 2001 From: Draycia Date: Thu, 3 Sep 2020 23:22:45 -0700 Subject: [PATCH] Add more config docs --- .../channels/impls/CarbonChatChannel.java | 2 +- src/main/resources/config.yml | 22 ++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/draycia/carbon/channels/impls/CarbonChatChannel.java b/src/main/java/net/draycia/carbon/channels/impls/CarbonChatChannel.java index f388a293..a63452d2 100644 --- a/src/main/java/net/draycia/carbon/channels/impls/CarbonChatChannel.java +++ b/src/main/java/net/draycia/carbon/channels/impls/CarbonChatChannel.java @@ -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 diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 4af27b0c..f48700d3 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -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: 'Broadcast: ' staff: 'Broadcast: ' ignorable: false - should-bungee: false + is-cross-server: false message-prefix: '!' +# Global context options contexts: Towny: cancellation-message: '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: '[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: