menu
#6719963 Constant expression contains invalid operations

Submitted by PocketMine-MP 4.3.0

General information

Version: 4.3.0
Git commit: e4ce467c
Plugin involvement: Direct
Report date: 2022-05-14 09:40:41 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.0.12
Operating system: linux
System banner: Linux 0be0b2b4881d 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Constant expression contains invalid operations
File: /home/gs-41269/virions/libFormAPI_dev-1 (4).phar/src/jojoe77777/FormAPI/FormAPI
Line: #18
Error level: E_COMPILE_ERROR
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use pocketmine\network\mcpe\protocol\SetDisplayObjectivePacket;
use pocketmine\network\mcpe\protocol\SetScorePacket;
use pocketmine\network\mcpe\protocol\types\ScorePacketEntry;
use pocketmine\player\Player;
use pocketmine\plugin\PluginBase;

class FormAPI extends PluginBase{

/** @var FormAPI $instance */
private static $instance = $this;
/** @var array $scoreboards */
private $scoreboards = [];

public function onLoad() : void {}

public static function getInstance() : self {
return self::$instance;
}

public function new(Player $player, string $objectiveName, string $displayName) : void {

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show