menu
#3754544 Argument 1 passed to ScoreMC\ScoreMC::createScore() must be an instance of pocketmine\Player, instance of SkyWars\Secciones\Usuario given

Submitted by PocketMine-MP 3.11.0

General information

Version: 3.11.0
Git commit: a386ff8c
Plugin involvement: Direct
Report date: 2020-02-13 04:32:32 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT WIN-HG8T6D8B62B 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

Error information

Warning: the ScoreMC plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to ScoreMC\ScoreMC::createScore() must be an instance of pocketmine\Player, instance of SkyWars\Secciones\Usuario given
File: plugins/ScoreMC_1.3.5.phar/src/ScoreMC/ScoreMC
Line: #57
Error level: TypeError
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	}

/**
* @param Player $player
* @param string $displayName
* @param int $sortOrder
* @param string $displaySlot
* @return void
*/
public function createScore(Player $player, string $displayName, int $sortOrder = 0, string $displaySlot = self::SIDEBAR) : void{
if(isset(self::$scoreboard[$player->getName()])){
$this->removeScore($player);
}
$packet = new SetDisplayObjectivePacket();
$packet->displaySlot = $displaySlot;
$packet->objectiveName = $player->getName();
$packet->displayName = $displayName;
$packet->criteriaName = "dummy";
$packet->sortOrder = $sortOrder;
$player->sendDataPacket($packet);
#0 plugins/SkyWarsBE-master/src/SkyWars/Partidas/SkyWars(494): ScoreMC\ScoreMC->createScore(object SkyWars\Secciones\Usuario, string[13] ..l..eSKYWARS)
#1 plugins/SkyWarsBE-master/src/SkyWars/Partidas/Solo(35): SkyWars\Partidas\SkyWars->actualizarPartida()
#2 plugins/SkyWarsBE-master/src/SkyWars/Tiempo/Partidas(31): SkyWars\Partidas\Solo->actualizarPartida()
#3 src/pocketmine/scheduler/TaskHandler(159): SkyWars\Tiempo\Partidas->onRun(integer 1461)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1461)
#5 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1461)
#6 src/pocketmine/Server(2567): pocketmine\plugin\PluginManager->tickSchedulers(integer 1461)
#7 src/pocketmine/Server(2343): pocketmine\Server->tick()
#8 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1785): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[41] C:\Users\Administrator\Desktop\seve test\, string[49] C:\Users\Administrator\Desktop\seve test\plugins\)
#11 src/pocketmine/PocketMine(295): pocketmine\server()
#12 (1): require(string[96] phar://C:/Users/Administrator/Desktop/seve test/PocketMine-MP.phar/src/pocketmin)

Loaded Plugins

  • Show

Server Settings

  • Show