From 6ec1d85b4bf195a9498d1ee6657c08f02439d211 Mon Sep 17 00:00:00 2001 From: William Du <70287641+W1ll-Du@users.noreply.github.com> Date: Tue, 7 Dec 2021 10:11:24 -0500 Subject: [PATCH] Update Listener.java --- app/src/main/java/io/github/w1ll_du/whitelister/Listener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/github/w1ll_du/whitelister/Listener.java b/app/src/main/java/io/github/w1ll_du/whitelister/Listener.java index 267c3bf..e1dfd53 100644 --- a/app/src/main/java/io/github/w1ll_du/whitelister/Listener.java +++ b/app/src/main/java/io/github/w1ll_du/whitelister/Listener.java @@ -41,6 +41,10 @@ public void onGuildMessageReceived(@NotNull GuildMessageReceivedEvent event) { if (event.getAuthor().getId().equals(conf.get("fdlink_bot_id"))) { fdLinkHandler.handle(event, playerMap, conf); } + if (event.getChannel().getId().equals(conf.get("changelog_channel_id)) + && ! event.getAuthor.getId().equals(owner_id)) { + // TODO: only allow java and filter out bedrock + } if (event.getAuthor().isBot()) { return; }