File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/main/java/net/azisaba/ryuzupluginchat Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >net.azisaba</groupId >
88 <artifactId >RyuZUPluginChat</artifactId >
9- <version >4.4.3 </version >
9+ <version >4.5.0 </version >
1010 <packaging >jar</packaging >
1111
1212 <name >${project.artifactId} </name >
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public class RPCConfig {
3737 private String vcCommandLunaChatChannel ;
3838
3939 private boolean defaultDisablePrivateChatInspect ;
40+ private boolean defaultDisableChannelChatInspect ;
4041
4142 private final List <DiscordMessageConnection > messageConnections = new ArrayList <>();
4243
@@ -78,6 +79,7 @@ public void load() {
7879 vcCommandLunaChatChannel = conf .getString ("discord.vc-command-lunachat-channel" , null );
7980
8081 defaultDisablePrivateChatInspect = conf .getBoolean ("default-disable-private-chat-inspect" , false );
82+ defaultDisableChannelChatInspect = conf .getBoolean ("default-disable-channel-chat-inspect" , false );
8183
8284 ConfigurationSection section = conf .getConfigurationSection ("discord.connections" );
8385 if (section == null ) {
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ public void onJoin(PlayerJoinEvent e) {
3333 if (plugin .getRpcConfig ().isDefaultDisablePrivateChatInspect ()) {
3434 plugin .getPrivateChatInspectHandler ().setDisable (p .getUniqueId (), true );
3535 }
36+ if (plugin .getRpcConfig ().isDefaultDisableChannelChatInspect ()) {
37+ plugin .getChannelChatInspectHandler ().setDisable (p .getUniqueId (), true );
38+ }
3639 }
3740
3841 @ EventHandler
You can’t perform that action at this time.
0 commit comments