menu
#5038727 Call to undefined method pocketmine\entity\object\ItemEntity::getName()

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 05:43:24 +0000 UTC
Server uptime: 0 days 0 hours 15 minutes 27 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux a6cac03ab26e 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64

Error information

Warning: the AntiGlitch plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\entity\object\ItemEntity::getName()
File: plugins/AntiGlitch.phar/src/Max/AntiGlitch/Main
Line: #46
Error level: Error
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
        if (!$pearl instanceof EnderPearl) return;
$this->pearlland[$player->getName()] = time();
}

public function onTP(EntityTeleportEvent $event) {
$entity = $event->getEntity();
$level = $entity->getLevel();
$to = $event->getTo(); //List of phasable blocks:
$openblocks = [0, 446, 355, 171, 44, 182, 158, 160, 187, 107, 183, 185, 184, 186, 85, 113, 139, 163, 180, 134, 135, 136, 108, 114, 67, 53, 128, 109, 203, 164, 431, 429, 428, 427, 324, 430, 175, 38, 37, 6, 32, 39, 40, 31, 106, 111, 146, 54, 81, 130, 397, 27, 28, 66, 126, 70, 72, 147, 148, 145, 77, 143, 356, 404, 50, 76, 167, 96, 330, 120, 116, 151, 354, 131, 69, 65, 321, 389, 101, 78, 323, 379, 390, 323, 30, 208];
if (!isset($this->pearlland[$entity->getName()])) return; //If tp was caused by enderpearl
if (time() - $this->pearlland[$entity->getName()] > 0.1) return; //If tp was (most likely) caused by enderpearl

$x = $to->getX();
$y = $to->getY();
$z = $to->getZ();
$xb = $to->getX();
$yb = $to->getY();
$zb = $to->getZ();

if($x < 0) {
#0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): Max\AntiGlitch\Main->onTP(object pocketmine\event\entity\EntityTeleportEvent)
#1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Max\AntiGlitch\Main, object pocketmine\event\entity\EntityTeleportEvent)
#2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityTeleportEvent)
#3 pmsrc/src/pocketmine/entity/Entity(1877): pocketmine\event\Event->call()
#4 plugins/SkyBlock.phar/src/room17/SkyBlock/island/IslandListener(180): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
#5 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): room17\SkyBlock\island\IslandListener->onDamage(object pocketmine\event\entity\EntityDamageEvent)
#6 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object room17\SkyBlock\island\IslandListener, object pocketmine\event\entity\EntityDamageEvent)
#7 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageEvent)
#8 pmsrc/src/pocketmine/entity/Entity(932): pocketmine\event\Event->call()
#9 pmsrc/src/pocketmine/entity/Entity(1032): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent)
#10 pmsrc/src/pocketmine/entity/object/ItemEntity(89): pocketmine\entity\Entity->entityBaseTick(integer 1)
#11 pmsrc/src/pocketmine/entity/Entity(1393): pocketmine\entity\object\ItemEntity->entityBaseTick(integer 1)
#12 pmsrc/src/pocketmine/level/Level(854): pocketmine\entity\Entity->onUpdate(integer 18420)
#13 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 18420)
#14 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 18420)
#15 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 18420, double 1626932604.8056)
#16 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#17 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#18 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#19 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] /server/, string[16] /server/plugins/)
#20 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#21 pmsrc(11): require(string[56] phar:///server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show