menu
#4874031 Cannot redeclare Shouldz\Arena\Arena::getKitBffa()

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-08 05:34:06 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 3 seconds

System Information

PHP version: 7.3.23
Operating system: win
System banner: Windows NT LAPTOP-7ICSMNGG 10.0 build 19041 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare Shouldz\Arena\Arena::getKitBffa()
File: plugins/Core_FFA_vPublic/src/Shouldz/Arena/Arena
Line: #354
Error level: E_COMPILE_ERROR
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
        $armorInventory->sendContents($player);

$sword = Item::get(Item::DIAMOND_SWORD, 0, 1);
$sword->addEnchantment((new EnchantmentInstance($unbreaking))->setLevel(2));
$inventory->addItem($sword);
$inventory->addItem(Item::get(Item::GOLDEN_APPLE, 0, 16));
$inventory->sendContents($player);
}

public function getKitBffa(Player $player){

$inventory = $player->getInventory();
$armorInventory = $player->getArmorInventory();

$protection = Enchantment::getEnchantment(Enchantment::PROTECTION);
$unbreaking = Enchantment::getEnchantment(Enchantment::UNBREAKING);
$helmet = Item::get(Item::DIAMOND_HELMET, 0, 1);
$helmet->addEnchantment(new EnchantmentInstance($protection));
$helmet->addEnchantment(new EnchantmentInstance($unbreaking));
$chestplate = Item::get(Item::DIAMOND_CHESTPLATE, 0, 1);

Loaded Plugins

  • Show

Server Settings

  • Show