menu
#4550267 Argument 1 passed to Chalapa13\WorldGuard\WorldGuard::getRegionByPlayer() must be an instance of pocketmine\Player, instance of hmmhmmmm\boss\entity\fly\BossGhast given

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 17:20:49 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux f51bb300ef59 4.15.0-108-generic #109-Ubuntu SMP Fri Jun 19 11:33:10 UTC 2020 x86_64

Error information

Warning: the WorldGuard plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to Chalapa13\WorldGuard\WorldGuard::getRegionByPlayer() must be an instance of pocketmine\Player, instance of hmmhmmmm\boss\entity\fly\BossGhast given
File: plugins/WorldGuard.phar/src/Chalapa13/WorldGuard/WorldGuard
Line: #198
Error level: TypeError
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
    public function onDisable(){
$this->saveRegions();
}

public function getRegion(string $region)
{
return $this->regions[$region] ?? "";
}

public function getRegionByPlayer(Player $player)
{
$reg = $this->getRegionOf($player);
return $reg !== "" ? $this->getRegion($reg) : "";
}

public function getRegionOf(Player $player): string
{
return $this->players[$player->getRawUniqueId()] ?? "";
}

#0 plugins/WorldGuard.phar/src/Chalapa13/WorldGuard/EventListener(372): Chalapa13\WorldGuard\WorldGuard->getRegionByPlayer(object hmmhmmmm\boss\entity\fly\BossGhast)
#1 src/pocketmine/plugin/MethodEventExecutor(42): Chalapa13\WorldGuard\EventListener->onHurtByEntity(object pocketmine\event\entity\EntityDamageByEntityEvent)
#2 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Chalapa13\WorldGuard\EventListener, object pocketmine\event\entity\EntityDamageByEntityEvent)
#3 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
#4 src/pocketmine/entity/Entity(933): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(545): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#6 src/pocketmine/Player(3873): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#7 src/pocketmine/level/Explosion(203): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
#8 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/projectile/FireBall(81): pocketmine\level\Explosion->explodeB()
#9 plugins/BossPlugin.phar/src/hmmhmmmm/boss/entity/projectile/LargeFireball(12): revivalpmmp\pureentities\entity\projectile\FireBall->onUpdate(integer 19077)
#10 src/pocketmine/level/Level(852): hmmhmmmm\boss\entity\projectile\LargeFireball->onUpdate(integer 19077)
#11 src/pocketmine/level/Level(785): pocketmine\level\Level->actuallyDoTick(integer 19077)
#12 src/pocketmine/Server(2267): pocketmine\level\Level->doTick(integer 19077)
#13 src/pocketmine/Server(2398): pocketmine\Server->checkTickUpdates(integer 19077, double 1601140849.5552)
#14 src/pocketmine/Server(2154): pocketmine\Server->tick()
#15 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#16 src/pocketmine/Server(1588): pocketmine\Server->start()
#17 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] /server/, string[16] /server/plugins/)
#18 src/pocketmine/PocketMine(304): pocketmine\server()
#19 (11): require(string[56] phar:///server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies