From c7aa0a63173489c0a231d139985e2d022ec63001 Mon Sep 17 00:00:00 2001 From: Draycia Date: Tue, 18 Aug 2020 06:14:17 -0700 Subject: [PATCH] Doc improvements and PAPI version bump --- CarbonChat/build.gradle | 2 +- .../java/net/draycia/carbon/CarbonChat.java | 2 +- CarbonChat/src/main/resources/config.yml | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CarbonChat/build.gradle b/CarbonChat/build.gradle index c8a66392..438227ed 100644 --- a/CarbonChat/build.gradle +++ b/CarbonChat/build.gradle @@ -20,7 +20,7 @@ dependencies { compile 'io.github.leonardosnt:bungeechannelapi:1.0.0-SNAPSHOT' compile 'io.lettuce:lettuce-core:6.0.0.M1' - compileOnly 'me.clip:placeholderapi:2.10.6' + compileOnly 'me.clip:placeholderapi:2.10.9' compileOnly 'com.github.TownyAdvanced:Towny:0.96.1.11' compileOnly 'com.github.MilkBowl:VaultAPI:1.7' compileOnly 'com.vexsoftware:nuvotifier-universal:2.6.0' diff --git a/CarbonChat/src/main/java/net/draycia/carbon/CarbonChat.java b/CarbonChat/src/main/java/net/draycia/carbon/CarbonChat.java index 9b563805..cd7ebbae 100644 --- a/CarbonChat/src/main/java/net/draycia/carbon/CarbonChat.java +++ b/CarbonChat/src/main/java/net/draycia/carbon/CarbonChat.java @@ -72,7 +72,7 @@ public final class CarbonChat extends JavaPlugin { setupListeners(); registerContexts(); - PlaceholderAPI.registerExpansion(new CarbonPlaceholders(this)); + new CarbonPlaceholders(this).register(); } @Override diff --git a/CarbonChat/src/main/resources/config.yml b/CarbonChat/src/main/resources/config.yml index c2214826..27d55be2 100644 --- a/CarbonChat/src/main/resources/config.yml +++ b/CarbonChat/src/main/resources/config.yml @@ -18,7 +18,7 @@ default: # Also supports PlaceholderAPI staff: '{[%vault_prefix%]} %player_displayname% ยป ' default: '[%vault_prefix%] %player_displayname%: ' - # The plugin will look for matching group in here when choosing which group to use for formatting + # CarbonChat will look for a matching group in the list below when choosing which group to use for formatting. # If there are no matches, the plugin will fall back to the primary-group-only option. # It's advised to set this option to [] if you don't want to use this. format-groups: @@ -29,8 +29,18 @@ default: # If set to true, players with the permission carbonchat.group.groupname will count as having # The group with the name groupname (carbonchat.group.owner will count has having the group owner) permission-group-matching: false + # If true, plugin will only use the format corresponding to the user's primary group (vault). + # If false, plugin will look through the user's groups and go with the first group with a corresponding format. + primary-group-only: true + # The name of the vault group which should be considered as the default group. + default-group: 'default' + # Contexts are optional settings that modify the way channels behave. + # For information on each contexts option, see the docs here : + # https://github.com/Draycia/Carbon/wiki/Contexts contexts: - # -1 to disable, 0 to set to world, 1+ to fully enable + # Used to set the range players have to be within to chat to each other + # -1 to disable, 0 to set to world only, 1+ to set the distance. + # EG. distance: 250 would require the players to be within 250 blocks to see each other's messages distance: -1 # mcmmo-party only works when the CarbonChatMCMMO addon is installed. # Requires both players to be in the same party to see the message. @@ -55,11 +65,6 @@ default: ignorable: true # Enables/disables cross server chat for this channel should-bungee: true - # If true, plugin will only use the format corresponding to the user's primary group (vault). - # If false, plugin will look through the user's groups and go with the first group with a corresponding format. - primary-group-only: true - # The name of the vault group which should be considered as the default group. - default-group: 'default' # 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.