menu
#2388046 Call to a member function setTag() on null

Submitted by PocketMine-MP 3.8.0

General information

Version: 3.8.0
Git commit: 088fbf65
Plugin involvement: Direct
Report date: 2019-05-16 00:20:39 +0000 UTC

System Information

PHP version: 7.2.12
Operating system: linux
System banner: Linux ns546439 4.9.87-xxxx-std-ipv6-64 #1 SMP Tue Mar 13 18:41:47 CET 2018 x86_64

Error information

Warning: the SilkSpawnersRN plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function setTag() on null
File: plugins/SilkSpawnersRN[1.10].phar/src/silkSpawners/main/Loader
Line: #214
Error level: Error
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
					}
}
}
if($stack !== null){
$namedTagStack = isset($stack->namedTag->StackDate) ? $stack->namedTag->StackDate : null;
if($namedTagStack !== null){

$this->getLogger()->notice("Tem CompoundTag");
}else{
$namedTagStack->setTag(new CompoundTag("StackDate", [new IntTag("count", 1)]));
$this->getLogger()->notice("Não Tem CompoundTag");
}
}
}
}
public function onCommand(CommandSender $s, Command $cmd, string $labbel, array $args) : bool
{
if($cmd->getName() == "givespawner"){
$spawnerId = 0;
$count = 1;
#0 src/pocketmine/plugin/MethodEventExecutor(38): silkSpawners\main\Loader->onEntitySpawn(pocketmine\event\entity\EntitySpawnEvent object)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(silkSpawners\main\Loader object, pocketmine\event\entity\EntitySpawnEvent object)
#2 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntitySpawnEvent object)
#3 src/pocketmine/entity/Entity(638): pocketmine\event\Event->call()
#4 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/BaseEntity(102): pocketmine\entity\Entity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
#5 src/pocketmine/entity/Entity(365): revivalpmmp\pureentities\entity\BaseEntity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
#6 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/PureEntities(265): pocketmine\entity\Entity::createEntity(integer 11, pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
#7 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/PureEntities(284): revivalpmmp\pureentities\PureEntities::create(integer 11, pocketmine\level\Position object)
#8 plugins/SilkSpawnersRN[1.10].phar/src/silkSpawners/main/Loader(260): revivalpmmp\pureentities\PureEntities->scheduleCreatureSpawn(pocketmine\level\Position object, integer 11, pocketmine\level\Level object, string Cow)
#9 plugins/SilkSpawnersRN[1.10].phar/src/silkSpawners/main/Loader(272): silkSpawners\main\Loader->spawning()
#10 src/pocketmine/scheduler/TaskHandler(159): silkSpawners\main\SpawnerTaskMob->onRun(integer 1)
#11 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1)
#12 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#13 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#14 src/pocketmine/Server(2335): pocketmine\Server->tick()
#15 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1775): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server267/, string /home/minecraft/multicraft/servers/server267/plugins/)
#18 (1): require(string phar:///home/minecraft/multicraft/servers/server267/customphar72.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show