menu
#298 Typed static property corndan\GoCore\managers\DiscountManager::$config must not be accessed before initialization

Submitted by PocketMine-MP 5.26.1+dev.2106

General information

Version: 5.26.1+dev.2106
Git commit: 4d592fdc
Plugin involvement: Direct
Report date: 2025-04-11 01:14:53 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the GoCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Typed static property corndan\GoCore\managers\DiscountManager::$config must not be accessed before initialization
File: plugins/GoCore/src/corndan/GoCore/managers/DiscountManager
Line: #25
Type: Error
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

public static function init(CoreMain $plugin): void
{
self::$plugin = $plugin;
self::$config = new Config(FileSystem::config("discount.yml"), Config::YAML);
}

public static function isDiscount()
{
return self::$config->get("status");
}

public static function getDiscount()
{
return self::$config->get("discount");
}

public static function getText()
{
return self::$config->get("text");
#0 plugins/GoFloating/src/corndan/GoFloating/model/FloatingModel(132): corndan\GoCore\managers\DiscountManager::isDiscount()
#1 plugins/GoFloating/src/corndan/GoFloating/model/FloatingModel(47): corndan\GoFloating\model\FloatingModel::convertVars(string[790] ..6... ..c.............. ..f.................... .................r ..e... ..7.)
#2 plugins/GoFloating/src/corndan/GoFloating/manager/FloatingManager(14): corndan\GoFloating\model\FloatingModel->__construct(object pocketmine\world\Position#85638, array[2], int 5, string[6] donate)
#3 plugins/GoFloating/src/corndan/GoFloating/FloatingMain(25): corndan\GoFloating\manager\FloatingManager::register(object pocketmine\world\Position#85638, array[2], int 5, string[6] donate)
#4 pmsrc/src/plugin/PluginBase(119): corndan\GoFloating\FloatingMain->onEnable()
#5 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#6 pmsrc/src/Server(1507): pocketmine\plugin\PluginManager->enablePlugin(object corndan\GoFloating\FloatingMain#57825)
#7 pmsrc/src/Server(1124): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#62548)
#8 pmsrc/src/PocketMine(360): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#9 pmsrc/src/PocketMine(383): pocketmine\server()
#10 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPjlyfaK.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show