#6719927 Cannot make non static method pocketmine\plugin\PluginBase::onLoad() static in class jojoe77777\FormAPI\FormAPI
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:36:40 +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 066ab78cfcbb 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: | Cannot make non static method pocketmine\plugin\PluginBase::onLoad() static in class jojoe77777\FormAPI\FormAPI |
---|---|
File: | /home/gs-41269/virions/libFormAPI_dev-1 (3).phar/src/jojoe77777/FormAPI/FormAPI |
Line: | #22 |
Error level: | E_COMPILE_ERROR |
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use pocketmine\plugin\PluginBase;
class FormAPI extends PluginBase{
/** @var Scoreboards $instance */
private static $instance;
/** @var array $scoreboards */
private $scoreboards = [];
public static function onLoad() : void {
self::$instance = $this;
}
public static function getInstance() : self {
return self::$instance;
}
public function new(Player $player, string $objectiveName, string $displayName) : void {
if(isset($this->scoreboards[$player->getName()])) {
$this->remove($player);
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show