From 45b1b400dbab091c47c9d1524e976d5b43e0bfb8 Mon Sep 17 00:00:00 2001 From: Shock95x Date: Tue, 7 Jul 2020 15:53:31 -0400 Subject: [PATCH] Temporary fix for client crashes - Updated InvMenu - Added warning for users who don't have InvCrashFix --- .gitignore | 2 ++ .poggit.yml | 3 +-- plugin.yml | 4 ++-- src/shock95x/auctionhouse/AuctionHouse.php | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f4aec68..4ae50dc 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,5 @@ fabric.properties .idea/**/markdown-navigator/ # End of https://www.gitignore.io/api/phpstorm + +todo.txt \ No newline at end of file diff --git a/.poggit.yml b/.poggit.yml index 1d764af..3626889 100644 --- a/.poggit.yml +++ b/.poggit.yml @@ -9,8 +9,7 @@ projects: - src: poggit/libasynql/libasynql version: ^3.3.0 - src: muqsit/InvMenu/InvMenu - branch: master - version: 3.1.0 + version: ^3.1.1 - src: SOF3/await-generator/await-generator version: ^2.2.0 - src: JackMD/UpdateNotifier/UpdateNotifier diff --git a/plugin.yml b/plugin.yml index 28f62f0..4f99664 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,9 +1,9 @@ name: AuctionHouse main: shock95x\auctionhouse\AuctionHouse -version: 1.1.1 +version: 1.1.2 api: 3.0.0 author: Shock95x -softdepend: [EconomyAPI] +softdepend: [EconomyAPI, InvCrashFix] virions: - "InvMenu" - "libasynql" diff --git a/src/shock95x/auctionhouse/AuctionHouse.php b/src/shock95x/auctionhouse/AuctionHouse.php index 081dd97..86f832e 100644 --- a/src/shock95x/auctionhouse/AuctionHouse.php +++ b/src/shock95x/auctionhouse/AuctionHouse.php @@ -82,6 +82,9 @@ public function onEnable() : void { $this->getServer()->getPluginManager()->disablePlugin($this); return; } + if($this->getServer()->getPluginManager()->getPlugin("InvCrashFix") == null) { + $this->getLogger()->warning("InvCrashFix is required to fix client crashes on 1.16, download it here: https://poggit.pmmp.io/ci/Muqsit/InvCrashFix"); + } $this->getServer()->getCommandMap()->register($this->getDescription()->getName(), new AHCommand($this)); $this->menuHandler = new MenuHandler($this); }