menu
#2470841 Trying to get property 'color' of non-object

Submitted by PocketMine-MP 3.8.0

General information

Version: 3.8.0
Git commit: 088fbf65
Plugin involvement: Direct
Report date: 2019-06-12 13:44:49 +0000 UTC

System Information

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

Error information

Warning: the SkyWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Trying to get property 'color' of non-object
File: plugins/SkyWars/src/SkyWars/scoreboards/RestartBoard
Line: #29
Error level: ErrorException
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
        $constructor->newBoard($player, SkyWars::GAME_NAME, "restart");
$constructor->addLine($player, 1, "§cGame Ended!");
$constructor->addLine($player, 2, "§fNick: §e{$player->getname()}");

switch ($constructor->getArena()->mode){
case Arena::MODE_TEAM:
$team = $constructor->getArena()->TeamManager->getPlayerTeam($player);
$winner = $constructor->getArena()->TeamManager->getLastTeam();

$constructor->addLine($player, 3, "§5Team: {$team->color}{$team->name}");
$constructor->addLine($player, 4, "§r");
$constructor->addLine($player, 5, "§6Winner: {$winner->color}{$winner->name} Team");
break;
case Arena::MODE_SOLO:
default:
$winner = null;
foreach ($constructor->getArena()->players as $winners){
$winner = $winners;
}

#0 plugins/SkyWars/src/SkyWars/scoreboards/RestartBoard(29): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Trying to get property 'color' of non-object, string D:\Alik\servery\pocketmine_new\plugins\SkyWars\src\SkyWars\scoreboards\RestartBoard.php, integer 29, array Array())
#1 plugins/SkyWars/src/SkyWars/scoreboards/ScoreBManager(128): SkyWars\scoreboards\RestartBoard->sendBoard(pocketmine\Player object)
#2 plugins/SkyWars/src/SkyWars/scoreboards/ScoreBManager(56): SkyWars\scoreboards\ScoreBManager->sendRestartBoard(pocketmine\Player object)
#3 plugins/SkyWars/src/SkyWars/scoreboards/ScoreBManager(74): SkyWars\scoreboards\ScoreBManager->sendBoard(pocketmine\Player object, integer 2)
#4 plugins/SkyWars/src/SkyWars/arena/Arena(405): SkyWars\scoreboards\ScoreBManager->broadcastBoard(integer 2)
#5 plugins/SkyWars/src/SkyWars/arena/ArenaScheduler(103): SkyWars\arena\Arena->startRestart()
#6 src/pocketmine/scheduler/TaskHandler(159): SkyWars\arena\ArenaScheduler->onRun(integer 4661)
#7 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 4661)
#8 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 4661)
#9 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 4661)
#10 src/pocketmine/Server(2335): pocketmine\Server->tick()
#11 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1775): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string D:\Alik\servery\pocketmine_new\, string D:\Alik\servery\pocketmine_new\plugins\)
#14 (1): require(string phar://D:/Alik/servery/pocketmine_new/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show