menu
#7304150 Declaration of nlog\trade\TradeAPI::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): 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 22:24:18 +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 ns3191983 5.8.0-63-generic #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of nlog\trade\TradeAPI::onLoad() must be compatible with pocketmine\plugin\PluginBase::onLoad(): void
File: plugins/TradeAPI/src/nlog/trade/TradeAPI
Line: #78
Error level: E_COMPILE_ERROR
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
	 * @return TradeAPI|null
*/
public static function getInstance(): ?TradeAPI {
return self::$instance;
}

/** @var TraderProperties[] */
private $process = [];

protected function onLoad() {
self::$instance = $this;
}

protected function onEnable() {
$this->getServer()->getPluginManager()->registerEvents(new InventoryListener($this), $this);
$this->getServer()->getPluginManager()->registerEvents(new TransactionInjector(), $this);
}

protected function onDisable() {
foreach (self::$inventory as $name => $inventory) {

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show