Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/shelly7w7/HealthTag/HealthTagCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ public function execute(CommandSender $sender, string $commandLabel, array $args
$sender->sendMessage(TextFormat::RED . "Successfully changed the custom format for healthtag," . TextFormat::YELLOW . " reload the file to update the changes '/healthtag reload'.");
}
} else if($action === "reload") {
Main::getInstance()->getConfig()->setAll(Main::getInstance()->configdata);
Main::getInstance()->getConfig()->save();
Main::getInstance()->getConfig()->reload();
Main::getInstance()->configdata = Main::getInstance()->getConfig()->getAll();
$sender->sendMessage(TextFormat::RED . "Successfully reloaded configuration file.");
} else {
$sender->sendMessage(TextFormat::RED . "Invalid arguments," . TextFormat::YELLOW . " use '/healthtag help' for more information.");
Expand Down