menu
#2907071 Cannot unset $this

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-10-09 19:50:52 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux asas56565 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64

Error information

Warning: the MenuPlus plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot unset $this
File: plugins/MenuPlus_v2.6.13_2018-07-04.phar/src/MenuPlus/Menu
Line: #28
Error level: E_COMPILE_ERROR
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

class Menu{

public $cold;

public function __construct($player, $id){
if($player == null){
$this->plugin = MenuPlus::getInstance();
if(!isset($this->plugin->menus[$id])){
unset($this);
return false;
}
$this->menudata = $this->plugin->menus[$id]; //不变
$this->items = $this->plugin->getMenuCache($id); //在改变
$this->page = 0;
$this->histories = [];
$this->id = $id;
$this->player = null;
$this->load = false;
}else{

Loaded Plugins

  • Show

Server Settings

  • Show