Skip to content

Commit

Permalink
Patched Config Reload
Browse files Browse the repository at this point in the history
Patched the Config Reload, now it can be reloaded using the function `CustomAlerts->reloadCfg()`
  • Loading branch information
KanekiLeChomeur authored Oct 12, 2023
1 parent d99f6ce commit 159d9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomAlerts/src/CustomAlerts/Commands/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 159d9b0

Please sign in to comment.