menu
#4218731 Call to undefined method pocketmine\command\ConsoleCommandSender::sendForm()

Submitted by PocketMine-MP 3.12.0

General information

Version: 3.12.0
Git commit: 77d45bf1
Plugin involvement: Direct
Report date: 2020-05-22 21:08:18 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux 0c1bd11b-a444-45c2-9484-a4c06f4d23e7 5.3.18-3-pve #1 SMP PVE 5.3.18-3 (Tue, 17 Mar 2020 16:33:19 +0100) x86_64

Error information

Warning: the WorldGuard plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\command\ConsoleCommandSender::sendForm()
File: plugins/WorldGuard 2.phar/src/Chalapa13/WorldGuard/GUI
Line: #23
Error level: Error
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use Chalapa13\WorldGuard\Region;

class GUI
{

public static $currentlyEditedRg = "";

public static function displayMenu(CommandSender $issuer)
{
$issuer->sendForm(new MenuForm(
"§9§lWorld Guard Menu", "Choose an option", [new Button("§6§lRegion Management", new Image("textures/items/book_writable", "path")),
new Button("§5§lHelp")],
function(Player $player, Button $selected) : void{

switch ($selected->getValue())
{
case 0:
self::displayRgManagement($player);
break;
case 1:
#0 plugins/WorldGuard 2.phar/src/Chalapa13/WorldGuard/WorldGuard(500): Chalapa13\WorldGuard\GUI::displayMenu(object pocketmine\command\ConsoleCommandSender)
#1 src/pocketmine/command/PluginCommand(54): Chalapa13\WorldGuard\WorldGuard->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[2] wg, array[0])
#2 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[2] wg, array[0])
#3 src/pocketmine/Server(1807): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[2] wg)
#4 src/pocketmine/Server(1419): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[2] wg)
#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(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1590181698.4514)
#8 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1584): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[19] /root/Server/Lobby/, string[27] /root/Server/Lobby/plugins/)
#11 src/pocketmine/PocketMine(296): pocketmine\server()
#12 (11): require(string[74] phar:///root/Server/Lobby/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show