menu
#3232229 Undefined variable: player

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-30 11:35:31 +0000 UTC

System Information

PHP version: 7.3.12
Operating system: win
System banner: Windows NT duara 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the xBowWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: player
File: plugins/xBowWars_v1.0.0.phar/src/bw/arena/ArenaScheduler
Line: #77
Error level: ErrorException
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

if($this->plugin->setup) return;

switch ($this->plugin->phase) {
case Arena::PHASE_LOBBY:
if(count($this->plugin->players) >= 2) {
$this->plugin->broadcastMessage("§e§lBOWWARS §r| §aDimulai dalam §e".Time::calculateTime($this->startTime)." §adetik", Arena::MSG_TIP);
if($this->startTime == 10){
$this->plugin->broadcastMessage("§e§lBOWWARS §r| §aDimulai dalam §e10§a detik!");
$this->plugin->level->addSound(new ClickSound($player->asVector3()));
}
if($this->startTime == 5){
foreach ($this->plugin->players as $player) {
$player->addTitle("§e§l5", "§bBersiap!");
$this->plugin->level->addSound(new ClickSound($player->asVector3()));
}
$this->plugin->broadcastMessage("§e§lBOWWARS §r| §aDimulai dalam §e5§a detik!");
}
if($this->startTime == 4){
foreach ($this->plugin->players as $player) {
#0 plugins/xBowWars_v1.0.0.phar/src/bw/arena/ArenaScheduler(77): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: player, string[101] phar://C:/Users/rafax/Downloads/VarCraft/plugins/xBowWars_v1.0.0.phar/src/bw/are, integer 77, array[1])
#1 src/pocketmine/scheduler/TaskHandler(159): bw\arena\ArenaScheduler->onRun(integer 9801)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 9801)
#3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 9801)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 9801)
#5 src/pocketmine/Server(2346): pocketmine\Server->tick()
#6 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1784): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\rafax\Downloads\VarCraft\, string[42] C:\Users\rafax\Downloads\VarCraft\plugins\)
#9 src/pocketmine/PocketMine(300): pocketmine\server()
#10 (1): require(string[89] phar://C:/Users/rafax/Downloads/VarCraft/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show