menu
#7304403 Declaration of FlyTicket\FlyTicket::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 23:43:53 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux kayizer 4.15.0-189-generic #200-Ubuntu SMP Wed Jun 22 19:53:37 UTC 2022 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of FlyTicket\FlyTicket::onEnable() must be compatible with pocketmine\plugin\PluginBase::onEnable(): void
File: plugins/FlyTicket/src/FlyTicket/FlyTicket
Line: #16
Error level: E_COMPILE_ERROR
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use pocketmine\plugin\PluginBase;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerInteractEvent;
use pocketmine\item\Item;
use pocketmine\utils\Config;
use FlyTicket\FlyTask;

class FlyTicket extends PluginBase implements Listener{

public function onEnable(){
$this->getLogger()->info("FlyTicket Plugin Active, Coding By Kadir3219");
$this->getServer()->getPluginManager()->registerEvents($this, $this);
@mkdir($this->getDataFolder());
@mkdir($this->getDataFolder()."Players/");
}

public function onInteract(PlayerInteractEvent $event){
$player = $event->getPlayer();
$item = $event->getItem();
if($item->getCustomName() == "§a10 Dakikalık Uçuş Bileti"){

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show