menu
#2470734 Trying to get property 'players' 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:27:10 +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 'players' of non-object
File: plugins/SkyWars/src/SkyWars/arena/ArenaScheduler
Line: #111
Error level: ErrorException
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
            case Arena::PHASE_GAME:

switch ($this->plugin->mode){
case Arena::MODE_SOLO:
$this->plugin->broadcastMessage("§aThere are " . count($this->plugin->players) . " players, time to end: " . Time::calculateTime($this->gameTime) . "", Arena::MSG_TIP);
break;
case Arena::MODE_TEAM:
foreach ($this->plugin->players as $player){
$team = $this->plugin->TeamManager->getPlayerTeam($player);
$players = count($team->players);

$oponents = count($this->plugin->players) - $players;
$player->sendTip("§aOponents: §2§l" . $oponents . " §r§aLeft Time: §2" . Time::calculateTime($this->gameTime) . "");
}

/**Spectator Message*/
$teams = $this->plugin->TeamManager->getTeams();
$message = [];
foreach ($teams as $team){
$message[] = $team->color.$team->name. ": ".count($team->players);
#0 plugins/SkyWars/src/SkyWars/arena/ArenaScheduler(111): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Trying to get property 'players' of non-object, string D:\Alik\servery\pocketmine_new\plugins\SkyWars\src\SkyWars\arena\ArenaScheduler.php, integer 111, array Array())
#1 src/pocketmine/scheduler/TaskHandler(159): SkyWars\arena\ArenaScheduler->onRun(integer 7401)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 7401)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 7401)
#4 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 7401)
#5 src/pocketmine/Server(2335): pocketmine\Server->tick()
#6 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1775): pocketmine\Server->start()
#8 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\)
#9 (1): require(string phar://D:/Alik/servery/pocketmine_new/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show