Skip to content

Commit

Permalink
Send a message when caching plugins list
Browse files Browse the repository at this point in the history
  • Loading branch information
toby7002 committed Oct 4, 2023
1 parent 8222222 commit 1cb273d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"text.cache.running": "§eTask is running! Please wait until it is finished",
"text.cache.running": "§eFetching plugins list from Poggit",
"text.cache.failed": "§cCould not get Poggit plugins list from Poggit: {%reason}",
"text.cache.successfully": "§a{{count}} Poggit plugins has been cached successfully",

Expand Down
2 changes: 2 additions & 0 deletions src/thebigcrafter/omp/OhMyPMMP.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use pocketmine\plugin\PluginBase;
use pocketmine\utils\SingletonTrait;
use pocketmine\utils\TextFormat;
use Symfony\Component\Filesystem\Path;
use thebigcrafter\Fluorine\Fluorine;
use thebigcrafter\Iodine\Iodine;
Expand Down Expand Up @@ -67,6 +68,7 @@ public function loadLanguage() : void
}
public function cachePlugins() : void {
Iodine::async(function() {
$this->getLogger()->info(self::getLanguage()->translate("text.cache.running"));
CachePlugins::run()->await();
})->await();
}
Expand Down

0 comments on commit 1cb273d

Please sign in to comment.