menu
#2387406 Argument 1 passed to Swourire\AdminTroll\Functions\functions::switchPlayer() must be an instance of pocketmine\Player, instance of revivalpmmp\pureentities\entity\monster\walking\Zombie given

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 17:23:13 +0000 UTC

System Information

PHP version: 7.2.4
Operating system: linux
System banner: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64

Error information

Warning: the AdminTroll plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to Swourire\AdminTroll\Functions\functions::switchPlayer() must be an instance of pocketmine\Player, instance of revivalpmmp\pureentities\entity\monster\walking\Zombie given
File: plugins/AdminTroll.phar/src/Swourire/AdminTroll/Functions/functions
Line: #209
Error level: TypeError
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

}

public function pumpkinPlayer(Player $player){
$pumpkin = Item::get(-155, 0, 1);
$player->getArmorInventory()->setHelmet($pumpkin);

}

public function switchPlayer(Player $sender, Player $target){
$positionsender = $sender->getPosition();
$sender->teleport($target->getPosition());
$target->teleport($positionsender);
}
}
#0 plugins/AdminTroll.phar/src/Swourire/AdminTroll/Events/Events(72): Swourire\AdminTroll\Functions\functions->switchPlayer(revivalpmmp\pureentities\entity\monster\walking\Zombie object, pocketmine\Player object)
#1 src/pocketmine/plugin/MethodEventExecutor(38): Swourire\AdminTroll\Events\Events->onPlayerHit(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(Swourire\AdminTroll\Events\Events object, pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#4 src/pocketmine/entity/Entity(984): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(572): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#6 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/BaseEntity(266): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#7 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Zombie(123): revivalpmmp\pureentities\entity\BaseEntity->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#8 src/pocketmine/entity/projectile/Projectile(318): revivalpmmp\pureentities\entity\monster\walking\Zombie->attack(pocketmine\event\entity\EntityDamageByChildEntityEvent object)
#9 src/pocketmine/entity/projectile/Projectile(252): pocketmine\entity\projectile\Projectile->onHitEntity(revivalpmmp\pureentities\entity\monster\walking\Zombie object, pocketmine\math\RayTraceResult object)
#10 src/pocketmine/entity/Entity(1464): pocketmine\entity\projectile\Projectile->move(double -0.019880243134039, double -0.16730615022249, double 1.4120561669624)
#11 src/pocketmine/level/Level(848): pocketmine\entity\Entity->onUpdate(integer 17073)
#12 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 17073)
#13 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 17073)
#14 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 17073, double 1557940993.3475)
#15 src/pocketmine/Server(2334): pocketmine\Server->tick()
#16 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#17 src/pocketmine/Server(1774): pocketmine\Server->start()
#18 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_2451/g1.hmserv.eu-19138/, string /home/gsp_2451/g1.hmserv.eu-19138/plugins/)
#19 (1): require(string phar:///home/gsp_2451/g1.hmserv.eu-19138/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show