From 77822c85e8ed61a93c7856ca877436120fbcc01c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 3 Jul 2023 21:24:44 +0700 Subject: [PATCH] synchronized? IDK maybe it will fix the stream closed exception if not then maybe i will make a write queue --- .../chayapak/chomens_bot/plugins/BossbarManagerPlugin.java | 2 +- .../chayapak/chomens_bot/plugins/CommandHandlerPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java index e62de89..85d177c 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java @@ -22,7 +22,7 @@ public class BossbarManagerPlugin extends Bot.Listener { public final Map serverBossBars = new HashMap<>(); private final Map bossBars = new HashMap<>(); - public final boolean enabled = true; + public boolean enabled = true; public final String bossBarPrefix = "chomens_bot:"; diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java index 1ada15d..15e3535 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java @@ -22,7 +22,7 @@ public class CommandHandlerPlugin { public final List commands = new ArrayList<>(); - public final boolean disabled = false; + public boolean disabled = false; public CommandHandlerPlugin (Bot bot) { this.bot = bot;