menu
#3069803 A void function must not return a value

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-11-06 12:29:27 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux autoapi.servereasy.it 4.15.0 #1 SMP Fri May 31 22:38:11 MSK 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: A void function must not return a value
File: plugins/EnderCore/src/TheNewHEROBRINE/EnderCore/Main
Line: #437
Error level: E_COMPILE_ERROR
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
			}

switch ($command->getName()){
case "setdamage":
if ($sender instanceof Player){
if (count($args) === 1){
$item = $sender->getInventory()->getItemInHand();
if ($item instanceof Air){
$sender->sendMessage(TextFormat::RED . "You have no item in your hand.");
return true;
}
$sender->getInventory()->setItemInHand($event->setBaseDamage($args[0]));
$sender->sendMessage(TextFormat::GREEN . "The item in your hand has been successfuly set damage in " . $event->getBaseDamage());
return true;
}
return false;
}
return true;
}
}

Loaded Plugins

  • Show

Server Settings

  • Show