menu
#6717638 pocketmine\entity\Human::setSkin(): Argument #1 ($skin) must be of type pocketmine\entity\Skin, null given, called in phar:///home/container/plugins/TopMoneyNPC.phar/src/RhaxZDev/NPCTop/Main.php on line 150

Submitted by PocketMine-MP 4.3.1

General information

Version: 4.3.1
Git commit: f7dce4af
Plugin involvement: Indirect
Report date: 2022-05-14 05:32:33 +0000 UTC
Server uptime: 0 days 15 hours 13 minutes 42 seconds

System Information

PHP version: 8.0.18
Operating system: linux
System banner: Linux 562a3459-27a9-41bd-b7e2-38a7a607da45 5.4.0-97-generic #110-Ubuntu SMP Thu Jan 13 18:22:13 UTC 2022 x86_64

Error information

Warning: the TopMoneyNPC plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: pocketmine\entity\Human::setSkin(): Argument #1 ($skin) must be of type pocketmine\entity\Skin, null given, called in phar:///home/container/plugins/TopMoneyNPC.phar/src/RhaxZDev/NPCTop/Main.php on line 150
File: pmsrc/src/entity/Human
Line: #140
Error level: TypeError
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
	 */
public function getSkin() : Skin{
return $this->skin;
}

/**
* Sets the human's skin. This will not send any update to viewers, you need to do that manually using
* {@link sendSkin}.
*/
public function setSkin(Skin $skin) : void{
$this->skin = $skin;
}

/**
* Sends the human's skin to the specified list of players. If null is given for targets, the skin will be sent to
* all viewers.
*
* @param Player[]|null $targets
*/
public function sendSkin(?array $targets = null) : void{
#0 plugins/TopMoneyNPC.phar/src/RhaxZDev/NPCTop/Main(150): pocketmine\entity\Human->setSkin(NULL )
#1 plugins/TopMoneyNPC.phar/src/RhaxZDev/NPCTop/Main(257): RhaxZDev\NPCTop\Main->forTask(object pocketmine\player\Player#262808)
#2 pmsrc/src/scheduler/TaskHandler(117): RhaxZDev\NPCTop\NPCTask->onRun()
#3 pmsrc/src/scheduler/TaskScheduler(144): pocketmine\scheduler\TaskHandler->run()
#4 pmsrc/src/plugin/PluginManager(478): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1089441)
#5 pmsrc/src/Server(1769): pocketmine\plugin\PluginManager->tickSchedulers(integer 1089441)
#6 pmsrc/src/Server(1658): pocketmine\Server->tick()
#7 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#8 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/PocketMine(327): pocketmine\server()
#10 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show