menu
#3754617 Argument 1 passed to ScoreMC\ScoreMC::removeScore() must be an instance of pocketmine\Player, array 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:42:31 +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::removeScore() must be an instance of pocketmine\Player, array given
File: plugins/ScoreMC_1.3.5.phar/src/ScoreMC/ScoreMC
Line: #75
Error level: TypeError
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
		$packet->sortOrder = $sortOrder;
$player->sendDataPacket($packet);
self::$scoreboard[$player->getName()] = $player->getName();
}

/**
* @param Player $player
* @return void
*/
public function removeScore(Player $player) : void{
$packet = new RemoveObjectivePacket();
$packet->objectiveName = $player->getName();
$player->sendDataPacket($packet);
unset(self::$scoreboard[$player->getName()]);
}

/**
* @param Player $player
* @param int $line
* @param string $customName
#0 plugins/SkyWarsBE-master/src/SkyWars/Partidas/SkyWars(447): ScoreMC\ScoreMC->removeScore(array[1])
#1 plugins/SkyWarsBE-master/src/SkyWars/Partidas/Solo(41): SkyWars\Partidas\SkyWars->agregarCelebracion(array[1])
#2 plugins/SkyWarsBE-master/src/SkyWars/Tiempo/Partidas(31): SkyWars\Partidas\Solo->actualizarPartida()
#3 src/pocketmine/scheduler/TaskHandler(159): SkyWars\Tiempo\Partidas->onRun(integer 5021)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 5021)
#5 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 5021)
#6 src/pocketmine/Server(2567): pocketmine\plugin\PluginManager->tickSchedulers(integer 5021)
#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