menu
#2907740 Call to undefined method Playek\EW\teams\Red::players()

Submitted by PocketMine-MP 3.9.6+dev.1777

General information

Version: 3.9.6+dev.1777
Git commit: 247875e3
Plugin involvement: Direct
Report date: 2019-10-10 03:17:59 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux nchosting 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 x86_64

Error information

Warning: the EggWars_PO plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method Playek\EW\teams\Red::players()
File: plugins/EggWars.phar/src/Playek/EW/teams/Red
Line: #95
Error level: Error
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
	
public function removePlayer($username): void {
if(isset($this->players[$username])){
unset($this->players[$username]);
}
}

public function isFull(){
$rul = false;
if(count($this->players()) == 2){
$rul = true;
}
return $rul;
}

public function getPosition(): Vector3 {
$vector = new Vector3(0, 40, 0);
$cfg = $this->main->newConfig("spawns");
$map = str_replace("-".$this->arena->id, "", $this->arena->map);
if($cfg->get($map.$this->getName()) != null){
#0 plugins/EggWars.phar/src/Playek/EW/teams/Team(83): Playek\EW\teams\Red->isFull()
#1 plugins/EggWars.phar/src/Playek/EW/task/EWGame(56): Playek\EW\teams\Team->foundTeamAllPlayers()
#2 src/pocketmine/scheduler/TaskHandler(159): Playek\EW\task\EWGame->onRun(integer 1799)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1799)
#4 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1799)
#5 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 1799)
#6 src/pocketmine/Server(2346): pocketmine\Server->tick()
#7 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[43] /home/minecraft/multicraft/servers/server1/, string[51] /home/minecraft/multicraft/servers/server1/plugins/)
#10 src/pocketmine/PocketMine(299): pocketmine\server()
#11 (1): require(string[88] phar:///home/minecraft/multicraft/jar/Pocketmine-1.12.phar/src/pocketmine/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show