From 4897c4568aee5043eb2f5850ea47937d5734da35 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Tue, 23 Jul 2024 20:31:40 -0400 Subject: [PATCH] reload config files on crazyauctions reload --- CHANGELOG.md | 1 + .../com/badbones69/crazyauctions/commands/AuctionCommand.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a470382..a7e495c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Fixed: - Issue with file manager not properly loading/reloading files. +- Reload config files on /crazyauctions reload ### Added: - `Help-Msg` to the messages.yml diff --git a/src/main/java/com/badbones69/crazyauctions/commands/AuctionCommand.java b/src/main/java/com/badbones69/crazyauctions/commands/AuctionCommand.java index 3ebe7b1..2426cc4 100644 --- a/src/main/java/com/badbones69/crazyauctions/commands/AuctionCommand.java +++ b/src/main/java/com/badbones69/crazyauctions/commands/AuctionCommand.java @@ -83,6 +83,10 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @N return true; } + Files.config.reload(); + Files.data.reload(); + Files.messages.reload(); + this.fileManager.reloadFiles().init(); this.crazyManager.load();