menu
#2467451 Cannot redeclare isPops\Hub\Main::gameMenu()

Submitted by PocketMine-MP 3.8.4

General information

Version: 3.8.4
Git commit: a42f68d3
Plugin involvement: Direct
Report date: 2019-06-12 03:50:24 +0000 UTC

System Information

PHP version: 7.2.5
Operating system: win
System banner: Windows NT ABRAHAMSPC 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare isPops\Hub\Main::gameMenu()
File: plugins/Hub/src/isPops/Hub/Main
Line: #98
Error level: E_COMPILE_ERROR
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
            }
});

$form->setTitle("┬žlSelect A Game");
$form->addButton("Zombies", 1, "https://i.ibb.co/f4rY7Sb/Zombie-Head.jpg");

$form->sendToPlayer($player);
}

public function gameMenu(Player $player)
{
$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$form = $api->createSimpleForm(function (Player $player, $data)
{
$result = $data;
if($result === null){ // Closed form without submitting
return;
}
switch ($data) {
case 0:

Loaded Plugins

  • Show

Server Settings

  • Show