menu
#4774495 Argument 1 passed to larryTheCoder\arena\api\PlayerManager::getOriginName() must be of the type string, int given

Submitted by PocketMine-MP 3.17.3

General information

Version: 3.17.3
Git commit: b296ae1b
Plugin involvement: Direct
Report date: 2021-02-22 21:08:38 +0000 UTC
Server uptime: 0 days 0 hours 8 minutes 2 seconds

System Information

PHP version: 7.4.14
Operating system: linux
System banner: Linux 1a066c8a-9309-4769-ad0a-bfc6fb3d0f9d 4.15.0-134-generic #138-Ubuntu SMP Fri Jan 15 10:52:18 UTC 2021 x86_64

Error information

Warning: the SkyWarsForPE plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to larryTheCoder\arena\api\PlayerManager::getOriginName() must be of the type string, int given
File: plugins/SkyWarsForPE_dev-9.phar/src/larryTheCoder/arena/api/PlayerManager
Line: #261
Error level: TypeError
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
	/**
* Return the default player name for this string. This function is perhaps
* to get the player information within this class.
*
* @param string $name
*
* @param string|null $return
* @return string The original name of this player.
*/
public function getOriginName(string $name, ?string $return = null): ?string{
if(!$this->isInArena($name)){
return $return;
}

$pl = $this->getOriginPlayer($name);

if($this->teamMode){
return $this->getColorByMeta($this->getTeamColorRaw($pl)) . $pl->getName();
}else{
return $pl->getName();
#0 plugins/SkyWarsForPE_dev-9.phar/src/larryTheCoder/arena/api/PlayerManager(438): larryTheCoder\arena\api\PlayerManager->getOriginName(integer 1, string[3] N/A)
#1 plugins/SkyWarsForPE_dev-9.phar/src/larryTheCoder/arena/task/SkyWarsTask(79): larryTheCoder\arena\api\PlayerManager->getWinners()
#2 plugins/SkyWarsForPE_dev-9.phar/src/larryTheCoder/arena/api/task/ArenaTickTask(78): larryTheCoder\arena\task\SkyWarsTask->endTick()
#3 pmsrc/src/pocketmine/scheduler/TaskHandler(137): larryTheCoder\arena\api\task\ArenaTickTask->onRun(integer 9642)
#4 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 9642)
#5 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 9642)
#6 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 9642)
#7 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#8 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#9 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#10 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server()
#12 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show