menu
#6720766 Declaration of Tijmen\jetpack\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.3.2

General information

Version: 4.3.2
Git commit: 755ca1af
Plugin involvement: Direct
Report date: 2022-05-14 11:14:17 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: win
System banner: Windows NT NEUTRONIC-EAGLE 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of Tijmen\jetpack\Main::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/Tv-Jetpack_v0.0.1/src/Tijmen/jetpack/Main
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
use pocketmine\level\particle\LavaParticle;
use pocketmine\level\particle\SmokeParticle;

class Main extends PluginBase implements Listener{

public $online = array();

public $fuel = [];

public function onEnable(){
$this->getLogger()->info("Jetpack's werden Erstellt");
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}
public function onDisable(){
$this->getLogger()->info("Jetpack's werden recycled");
}
public function onJoin(PlayerJoinEvent $e) {
$p = $e->getPlayer();
$this->online[$p->getName()] = $p->getName();
$name = strtolower($p->getName());

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show