diff --git a/pom.xml b/pom.xml
index e4601a14..f4be4a52 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
net.azisaba
RyuZUPluginChat
- 4.4.3
+ 4.5.0
jar
${project.artifactId}
diff --git a/src/main/java/net/azisaba/ryuzupluginchat/config/RPCConfig.java b/src/main/java/net/azisaba/ryuzupluginchat/config/RPCConfig.java
index 2d54e697..6afc52a6 100644
--- a/src/main/java/net/azisaba/ryuzupluginchat/config/RPCConfig.java
+++ b/src/main/java/net/azisaba/ryuzupluginchat/config/RPCConfig.java
@@ -37,6 +37,7 @@ public class RPCConfig {
private String vcCommandLunaChatChannel;
private boolean defaultDisablePrivateChatInspect;
+ private boolean defaultDisableChannelChatInspect;
private final List messageConnections = new ArrayList<>();
@@ -78,6 +79,7 @@ public void load() {
vcCommandLunaChatChannel = conf.getString("discord.vc-command-lunachat-channel", null);
defaultDisablePrivateChatInspect = conf.getBoolean("default-disable-private-chat-inspect", false);
+ defaultDisableChannelChatInspect = conf.getBoolean("default-disable-channel-chat-inspect", false);
ConfigurationSection section = conf.getConfigurationSection("discord.connections");
if (section == null) {
diff --git a/src/main/java/net/azisaba/ryuzupluginchat/listener/JoinQuitListener.java b/src/main/java/net/azisaba/ryuzupluginchat/listener/JoinQuitListener.java
index 2bb3172e..acc3b5dd 100644
--- a/src/main/java/net/azisaba/ryuzupluginchat/listener/JoinQuitListener.java
+++ b/src/main/java/net/azisaba/ryuzupluginchat/listener/JoinQuitListener.java
@@ -33,6 +33,9 @@ public void onJoin(PlayerJoinEvent e) {
if (plugin.getRpcConfig().isDefaultDisablePrivateChatInspect()) {
plugin.getPrivateChatInspectHandler().setDisable(p.getUniqueId(), true);
}
+ if (plugin.getRpcConfig().isDefaultDisableChannelChatInspect()) {
+ plugin.getChannelChatInspectHandler().setDisable(p.getUniqueId(), true);
+ }
}
@EventHandler