menu
#2907766 Undefined property: Playek\EW\teams\Red::$prefix

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:30:43 +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: Undefined property: Playek\EW\teams\Red::$prefix
File: plugins/EggWars.phar/src/Playek/EW/teams/Red
Line: #69
Error level: ErrorException
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
		}
return $tim;
}

public function addPlayer(Player $player): void {
$username = $player->getName();
if(!isset($this->players[$username])){
if(count($this->players) < $this->getMaxPerTeam()){
$this->players[$player->getName()] = $player;
$player->sendMessage($this->prefix."Te has unido al equipo ".self::COLOR.$this->getName());
}else{
$player->sendMessage($this->prefix."El equipo ".self::COLOR.$this->getName()." esta lleno!");
}
}
}

public function applyKit(Player $p){
$p->getInventory()->setItem(0, Item::get(268, 0, 1)->setCustomName("§o§7Sword"));

$helmet = Item::get(298, 0, 1);
#0 plugins/EggWars.phar/src/Playek/EW/teams/Red(69): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[48] Undefined property: Playek\EW\teams\Red::$prefix, string[98] phar:///home/minecraft/multicraft/servers/server1/plugins/EggWars.phar/src/Playe, integer 69, array[2])
#1 plugins/EggWars.phar/src/Playek/EW/teams/Team(105): Playek\EW\teams\Red->addPlayer(object pocketmine\Player)
#2 plugins/EggWars.phar/src/Playek/EW/task/EWGame(56): Playek\EW\teams\Team->foundTeamAllPlayers()
#3 src/pocketmine/scheduler/TaskHandler(159): Playek\EW\task\EWGame->onRun(integer 2983)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2983)
#5 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2983)
#6 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 2983)
#7 src/pocketmine/Server(2346): pocketmine\Server->tick()
#8 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1784): pocketmine\Server->start()
#10 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/)
#11 src/pocketmine/PocketMine(299): pocketmine\server()
#12 (1): require(string[88] phar:///home/minecraft/multicraft/jar/Pocketmine-1.12.phar/src/pocketmine/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show