diff --git a/plugin.yml b/plugin.yml index 6a476e8..7f86055 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,7 +2,7 @@ name: KitUI author: Infernus101 api: [3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9, 3.0.0-ALPHA10] main: Infernus101\KitUI\Main -version: 1.1.8 +version: 1.1.9 permission: # kit permissions - kit. kit.command: description: kit command! diff --git a/src/Infernus101/KitUI/Kit.php b/src/Infernus101/KitUI/Kit.php index b2e7a29..90d6bcb 100644 --- a/src/Infernus101/KitUI/Kit.php +++ b/src/Infernus101/KitUI/Kit.php @@ -42,6 +42,7 @@ public function getName() : string{ public function add(Player $player){ $inv = $player->getInventory(); + $arm = $player->getArmorInventory(); if($this->pl->config->get("clear-inventory")){ $inv->clearAll(); @@ -64,10 +65,10 @@ public function add(Player $player){ } } - isset($this->data["helmet"]) and $inv->setHelmet($this->loadItem(...explode(":", $this->data["helmet"]))); - isset($this->data["chestplate"]) and $inv->setChestplate($this->loadItem(...explode(":", $this->data["chestplate"]))); - isset($this->data["leggings"]) and $inv->setLeggings($this->loadItem(...explode(":", $this->data["leggings"]))); - isset($this->data["boots"]) and $inv->setBoots($this->loadItem(...explode(":", $this->data["boots"]))); + isset($this->data["helmet"]) and $arm->setHelmet($this->loadItem(...explode(":", $this->data["helmet"]))); + isset($this->data["chestplate"]) and $arm->setChestplate($this->loadItem(...explode(":", $this->data["chestplate"]))); + isset($this->data["leggings"]) and $arm->setLeggings($this->loadItem(...explode(":", $this->data["leggings"]))); + isset($this->data["boots"]) and $arm->setBoots($this->loadItem(...explode(":", $this->data["boots"]))); if(isset($this->data["effects"])){ foreach($this->data["effects"] as $effectString){