menu
#7035066 Too few arguments to function CortexPE\DiscordWebhookAPI\Embed::addField(), 1 passed in /home/container/plugins/SegaCore-main/src/SegaCore/Core/EventListener.php on line 251 and at least 2 expected

Submitted by PocketMine-MP 4.5.1

General information

Version: 4.5.1
Git commit: d641812c
Plugin involvement: Direct
Report date: 2022-06-23 15:00:35 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 8 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 6459a7d0-ce75-464a-aa9d-c4e05c708115 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Too few arguments to function CortexPE\DiscordWebhookAPI\Embed::addField(), 1 passed in /home/container/plugins/SegaCore-main/src/SegaCore/Core/EventListener.php on line 251 and at least 2 expected
File: /home/container/virions/DiscordWebhookAPI-master/src/CortexPE/DiscordWebhookAPI/Embed
Line: #66
Error level: ArgumentCountError
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

public function setDescription(string $description):void{
$this->data["description"] = $description;
}

public function setColor(int $color):void{
$this->data["color"] = $color;
}

public function addField(string $name, string $value, bool $inline = false):void{
if(!isset($this->data["fields"])){
$this->data["fields"] = [];
}
$this->data["fields"][] = [
"name" => $name,
"value" => $value,
"inline" => $inline,
];
}

#0 plugins/SegaCore-main/src/SegaCore/Core/EventListener(251): CortexPE\DiscordWebhookAPI\Embed->addField(string[9] Duel Fist)
#1 pmsrc/src/event/RegisteredListener(60): SegaCore\Core\EventListener->onAttack(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#3 pmsrc/src/entity/Entity(525): pocketmine\event\Event->call()
#4 pmsrc/src/entity/Living(517): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#5 pmsrc/src/player/Player(2335): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#6 plugins/SegaMCKB Editor/src/jkorn/pvpcore/player/PvPCPlayer(138): pocketmine\player\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#7 pmsrc/src/player/Player(1741): jkorn\pvpcore\player\PvPCPlayer->attack(object pocketmine\event\entity\EntityDamageByEntityEvent#131323)
#8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(511): pocketmine\player\Player->attackEntity(object jkorn\pvpcore\player\PvPCPlayer#31817)
#9 pmsrc/src/network/mcpe/handler/InGamePacketHandler(301): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemOnEntityTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData#131398)
#10 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(105): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#131319)
#11 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#124968)
#12 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#131319, string[32] ........5..Gr=.B...G............)
#13 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[68] c.abf.b.j...7....8=....Q 73/5.(1... '.2...AA..........F.".n...7.3 ..)
#14 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[77] ..5.E-.fzqu.J......p......|[email protected];....\.5j.M..=e......0.lxe0..d..+..sU.f.)
#15 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#29163)
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#17 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#18 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655996435.3412)
#19 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#20 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#21 pmsrc/src/PocketMine(327): pocketmine\server()
#22 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show