menu
#3226494 Nesting level too deep - recursive dependency?

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-29 11:28:57 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: linux
System banner: Linux cloud6.fun 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64

Error information

Warning: the SuperNpc plugin was directly involved in this crash. Please contact the plugin author.
Message: Nesting level too deep - recursive dependency?
File: plugins/SuperNpc_v1.2.1_GUI.phar/src/SuperNpc/PluginMain
Line: #155
Error level: E_ERROR
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

public function onJoin(PlayerJoinEvent $ev)
{
if ($this->npcs === []) $this->onLoadNpc();
}

public function onEntityDamage(EntityDamageEvent $ev)
{
$target = $ev->getEntity();
if (in_array($target, $this->npcs)) {
$name = array_search($target, $this->npcs);
$this->data = $this->config->getAll();
$data = $this->data[$name];
if ($ev instanceof EntityDamageByEntityEvent) {
$damager = $ev->getDamager();
if ($damager instanceof Player) {
if ($data["Text"] !== []) {
foreach ($data["Text"] as $key => $message) {
$damager->sendMessage("{$target->getNameTag()}: " . $message);
}

Loaded Plugins

  • Show

Server Settings

  • Show