Merge pull request #3 from SuperMaXAleX/patch-2

Update Elytra.php with good values.
This commit is contained in:
Ad5001 2017-01-01 11:49:45 +01:00 committed by GitHub
commit 3eac7b4644

View file

@ -1,35 +1,24 @@
<?php
namespace Ad5001\Elytra;
use pocketmine\Server;
use pocketmine\Player;
use pocketmine\item\Armor;
use Ad5001\Elytra\Main;
class Elytra extends Armor {
class Elytra extends Armor{
public function __construct($meta = 0, $count = 1){
parent::__construct(444, $meta, $count, "Elytra");
parent::__construct(444, $meta, $count, "Elytra Wings");
}
}
public function getArmorType(){
return Armor::TYPE_CHESTPLATE;
}
public function getMaxDurability(){
return 431;
}
public function isChestplate(){
return true;
}
}