menu
#2470216 Undefined variable: VersaiPlayer(1)

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-06-12 11:55:53 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT DESKTOP-GN1C80E 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the VersaiHCF_Core plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: VersaiPlayer(1)
File: plugins/VersaiHCFCore/src/VersaiCore/VersaiHCF/Versai
Line: #38
Error level: ErrorException
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
      }
}

public function onCreation(PlayerCreationEvent $event){
$event->setPlayerClass(new VersaiPlayer($event->getInterface(), $event->getAddress(), $event->getPort()));
}

public function onMove(PlayerMoveEvent $event){
$player = $event->getPlayer();
if($$player instanceof VersaiPlayer){
echo $player->getFaction();
}
}

public function onSneak(PlayerToggleSneakEvent $event){
$event->getPlayer()->setFaction("owo");
}

}
#0 plugins/VersaiHCFCore/src/VersaiCore/VersaiHCF/Versai(38): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined variable: VersaiPlayer(1), string C:\Users\swour\OneDrive\Bureau\VersaiHCF\plugins\VersaiHCFCore\src\VersaiCore\VersaiHCF\Versai.php, integer 38, array Array())
#1 src/pocketmine/plugin/MethodEventExecutor(38): VersaiCore\VersaiHCF\Versai->onMove(pocketmine\event\player\PlayerMoveEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(VersaiCore\VersaiHCF\Versai object, pocketmine\event\player\PlayerMoveEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerMoveEvent object)
#4 src/pocketmine/Player(1647): pocketmine\event\Event->call()
#5 src/pocketmine/Player(1752): pocketmine\Player->processMovement(integer 1)
#6 src/pocketmine/level/Level(848): pocketmine\Player->onUpdate(integer 441)
#7 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 441)
#8 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 441)
#9 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 441, double 1560340553.5187)
#10 src/pocketmine/Server(2334): pocketmine\Server->tick()
#11 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1774): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\swour\OneDrive\Bureau\VersaiHCF\, string C:\Users\swour\OneDrive\Bureau\VersaiHCF\plugins\)
#14 (1): require(string phar://C:/Users/swour/OneDrive/Bureau/VersaiHCF/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show