menu
#4656822 Call to a member function createSimpleForm() on null

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-21 23:04:10 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux 6d4dfba2-05a1-4bdc-959c-f54c846b4ba1 4.15.0-121-generic #123-Ubuntu SMP Mon Oct 5 16:16:40 UTC 2020 x86_64

Error information

Warning: the Staff plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function createSimpleForm() on null
File: plugins/StaffMode.phar/src/Staff/StaffMode
Line: #44
Error level: Error
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
                }     
break;

}
return true;
}

public function Menu($sender){
$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$form = $api->createSimpleForm(function (Player $sender, int $data = null){
$result = $data;
if($result === null){
return true;
}
switch($result){
case 0:
$this->GMUI($sender);
break;
case 1:
$this->VanishUI($sender);
#0 plugins/StaffMode.phar/src/Staff/StaffMode(31): Staff\StaffMode->Menu(object pocketmine\command\ConsoleCommandSender)
#1 src/pocketmine/command/PluginCommand(54): Staff\StaffMode->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[5] staff, array[0])
#2 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[5] staff, array[0])
#3 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[5] staff)
#4 src/pocketmine/Server(1423): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[5] staff)
#5 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#6 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#7 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1605999850.2513)
#8 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1588): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 src/pocketmine/PocketMine(304): pocketmine\server()
#12 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show