synchronized?

IDK maybe it will fix the stream closed exception
if not then maybe i will make a write queue
This commit is contained in:
Chayapak 2023-07-03 21:24:44 +07:00
parent 5324d3ef29
commit 77822c85e8
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ public class BossbarManagerPlugin extends Bot.Listener {
public final Map<UUID, BossBar> serverBossBars = new HashMap<>();
private final Map<UUID, BotBossBar> bossBars = new HashMap<>();
public final boolean enabled = true;
public boolean enabled = true;
public final String bossBarPrefix = "chomens_bot:";

View file

@ -22,7 +22,7 @@ public class CommandHandlerPlugin {
public final List<Command> commands = new ArrayList<>();
public final boolean disabled = false;
public boolean disabled = false;
public CommandHandlerPlugin (Bot bot) {
this.bot = bot;