menu
#10626520 Cannot assign bool to property Mencoreh\ConsumableCooldowns\Main::$cooldownMessage of type string

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:22:54 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: win
System banner: Windows NT DESKTOP-4UOSUSC 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the ConsumableCooldowns plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Cannot assign bool to property Mencoreh\ConsumableCooldowns\Main::$cooldownMessage of type string
File: plugins/ConsumableCooldowns/src/Main
Line: #29
Type: TypeError
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    protected $cooldowns = [];
protected string $cooldownMessage;
protected int $enderPearlCooldown;
protected int $eGappleCooldown;

public function onEnable(): void
{
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->saveDefaultConfig();
$this->cooldownMessage = $this->getConfig()->get('cooldown-mesage');
$this->enderPearlCooldown = $this->getConfig()->get('ender-pearl-cooldown');
$this->eGappleCooldown = $this->getConfig()->get('enchanted-gapple-cooldown');
}

public function onConsume(PlayerItemConsumeEvent $event)
{
$player = $event->getPlayer();
$item = $event->getItem();

if (!($item instanceof GoldenAppleEnchanted)) return;
#0 pmsrc/src/plugin/PluginBase(119): Mencoreh\ConsumableCooldowns\Main->onEnable()
#1 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#2 pmsrc/src/Server(1404): pocketmine\plugin\PluginManager->enablePlugin(object Mencoreh\ConsumableCooldowns\Main#45552)
#3 pmsrc/src/Server(1035): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45230)
#4 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[39] C:\Users\User\Downloads\PocketmineTest\, string[47] C:\Users\User\Downloads\PocketmineTest\plugins\)
#5 pmsrc/src/PocketMine(373): pocketmine\server()
#6 pmsrc(11): require(string[83] phar://C:/Users/User/Downloads/PocketmineTest/PocketMine-MP.phar/src/PocketMine.)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show