menu
#4656653 Constant expression contains invalid operations

Submitted by PocketMine-MP 3.15.4

General information

Version: 3.15.4
Git commit: e8b6b563
Plugin involvement: Direct
Report date: 2020-11-21 19:14:09 +0000 UTC

System Information

PHP version: 7.4.7
Operating system: win
System banner: Windows NT DESKTOP-JQSTBAV 10.0 build 18363 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Constant expression contains invalid operations
File: plugins/pve/src/noahasu/pve/Main
Line: #24
Error level: E_COMPILE_ERROR
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use noahasu\pve\entity\npc\{CustomNPC,Trent,TwigSpirit,TreeMonster};

use pocketmine\entity\Skin;
use noahasu\pve\entity\pngChangeSkin;

class Main extends PluginBase implements Listener {
public static $entityData;
private $kaisu = 0;
private $gouke = 0;
private $a = mt_rand(1,10);
public function onEnable() {
foreach(['skins\oak.png','models\test.geo.json','models\trent.geo.json','entityData.json'] as $file) {
$this -> saveResource($file);
}
$entityJson = file_get_contents($this -> getDataFolder().'entityData.json');
self::$entityData = json_decode($entityJson);
$this -> getServer() -> getPluginManager() -> registerEvents(new PVEListener($this),$this);
Entity::registerEntity(CustomEntity::class,true,['custom_entity','pve:customEntity']);
Entity::registerEntity(CustomNPC::class,true,['custom_npc','pve:customNPC']);
Entity::registerEntity(Trent::class,true,["Trent"]);

Loaded Plugins

  • Show

Server Settings

  • Show