Update Elytra.php with good values.

This commit is contained in:
SuperMaXAleX 2016-12-28 11:18:22 +01:00 committed by GitHub
parent ad9cdc84c6
commit 7f330a3b45

View file

@ -1,35 +1,24 @@
<?php <?php
//From Elywing.
namespace pocketmine\item;
namespace Ad5001\Elytra; class Elytra extends Armor{
use pocketmine\Server;
use pocketmine\Player;
use pocketmine\item\Armor;
use Ad5001\Elytra\Main;
class Elytra extends Armor {
public function __construct($meta = 0, $count = 1){ 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;
}
}