From 159d9b00a1cc14a0c9d5bc5331ac49bf7e9622be Mon Sep 17 00:00:00 2001 From: KanekiLeChomeur <52374013+KanekiLeChomeur@users.noreply.github.com> Date: Fri, 13 Oct 2023 00:53:50 +0200 Subject: [PATCH] Patched Config Reload Patched the Config Reload, now it can be reloaded using the function `CustomAlerts->reloadCfg()` --- CustomAlerts/src/CustomAlerts/Commands/Commands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomAlerts/src/CustomAlerts/Commands/Commands.php b/CustomAlerts/src/CustomAlerts/Commands/Commands.php index b0649c7..cb11281 100755 --- a/CustomAlerts/src/CustomAlerts/Commands/Commands.php +++ b/CustomAlerts/src/CustomAlerts/Commands/Commands.php @@ -43,7 +43,7 @@ public function execute(CommandSender $sender, string $commandLabel, array $args case "reload": if($sender->hasPermission("customalerts.reload")){ $this->plugin->reloadConfig(); - $this->plugin->cfg = $this->plugin->getConfig()->getAll(); + $this->plugin->reloadCfg(); $sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&aConfiguration Reloaded.")); }else{ $sender->sendMessage(TextFormat::colorize("&cYou don't have permissions to use this command"));