From 938f857b86a0cdba822c213ee81a525c21fb3211 Mon Sep 17 00:00:00 2001 From: Draycia Date: Mon, 15 Jun 2020 20:47:17 -0700 Subject: [PATCH] Add channel use permissions --- .../net/draycia/simplechat/commands/ChannelCommand.java | 1 + src/main/resources/config.yml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/draycia/simplechat/commands/ChannelCommand.java b/src/main/java/net/draycia/simplechat/commands/ChannelCommand.java index 022d6288..34c03782 100644 --- a/src/main/java/net/draycia/simplechat/commands/ChannelCommand.java +++ b/src/main/java/net/draycia/simplechat/commands/ChannelCommand.java @@ -10,6 +10,7 @@ import org.bukkit.Bukkit; import org.bukkit.entity.Player; @CommandAlias("ch|channel|switch") +@CommandPermission("simplechat.use.switch") public class ChannelCommand extends BaseCommand { private SimpleChat simpleChat; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e8159317..2fce852c 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -9,9 +9,9 @@ channels: staff: '{[%deluxetags_tag%]} %player_displayname% ยป ' default: '[%deluxetags_tag%] %player_displayname%: ' webhook: 'URL_HERE' # Comment out / remove to disable webhook - color: WHITE - default: true - ignorable: true + color: WHITE # Removing this option defaults to 'WHITE' + default: true # Removing this option defaults to 'false' + ignorable: true # Removing this option defaults to 'true' distance: -1 # Set to -1, comment out, or remove to disable distance checking bot-token: -1