menu
#10302398 Creation of dynamic property TheNote\SnowMod\SnowModTask::$player is deprecated

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:16:27 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux minecraft 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64

Error information

Warning: the SnowMod plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Creation of dynamic property TheNote\SnowMod\SnowModTask::$player is deprecated
File: plugins/SnowMod/src/TheNote/SnowMod/SnowModTask
Line: #20
Type: ErrorException
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

namespace TheNote\SnowMod;

use pocketmine\scheduler\Task;

class SnowModTask extends Task
{
function __construct(SnowMod $player)
{
$this->player = $player;
}

public function onRun(): void
{
$player = $this->player;
$player->SnowMod();
}
}
#0 plugins/SnowMod/src/TheNote/SnowMod/SnowModTask(20): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 8192, string[79] Creation of dynamic property TheNote\SnowMod\SnowModTask::$player is deprecated, string[67] /home/lucy/test/plugins/SnowMod/src/TheNote/SnowMod/SnowModTask.php, int 20)
#1 plugins/SnowMod/src/TheNote/SnowMod/SnowMod(38): TheNote\SnowMod\SnowModTask->__construct(object TheNote\SnowMod\SnowMod#45307)
#2 pmsrc/src/plugin/PluginBase(119): TheNote\SnowMod\SnowMod->onEnable()
#3 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1407): pocketmine\plugin\PluginManager->enablePlugin(object TheNote\SnowMod\SnowMod#45307)
#5 pmsrc/src/Server(1036): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#45272)
#6 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[16] /home/lucy/test/, string[24] /home/lucy/test/plugins/)
#7 pmsrc/src/PocketMine(364): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/lucy/test/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show