menu
#6718202 Cannot assign null to property LatamPMDevs\minerware\database\DataManager::$playerStorageType of type string

Submitted by PocketMine-MP 4.3.1+dev

General information

Version: 4.3.1+dev
Git commit: 94838b26
Plugin involvement: Direct
Report date: 2022-05-14 06:33:01 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 3 seconds

System Information

PHP version: 8.0.16
Operating system: win
System banner: Windows NT DESKTOP-6NMRBBD 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot assign null to property LatamPMDevs\minerware\database\DataManager::$playerStorageType of type string
File: plugins/Minerware/src/LatamPMDevs/minerware/database/DataManager
Line: #68
Error level: TypeError
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
		$this->plugin = Minerware::getInstance();
$this->pluginPath = $this->plugin->getDataFolder();
$this->config = $this->plugin->getConfig();

$formats = Config::$formats;
$formats["nbt"] = 6;
$formats["namedtag"] = $formats["nbt"];
$this->formats = $formats;

$this->playerStorageType = $this->config->getNested("storage-format.player-data");

@mkdir($this->pluginPath . "database" . DIRECTORY_SEPARATOR);
@mkdir($this->pluginPath . "database" . DIRECTORY_SEPARATOR . "players" . DIRECTORY_SEPARATOR);
@mkdir($this->pluginPath . "database" . DIRECTORY_SEPARATOR . "maps" . DIRECTORY_SEPARATOR);
@mkdir($this->pluginPath . "database" . DIRECTORY_SEPARATOR . "backups" . DIRECTORY_SEPARATOR);

$this->plugin->saveResource("languages/en_US.ini", true);
$this->plugin->saveResource("languages/es_MX.ini", true);
}

#0 pmsrc/src/utils/SingletonTrait(31): LatamPMDevs\minerware\database\DataManager->__construct()
#1 pmsrc/src/utils/SingletonTrait(36): LatamPMDevs\minerware\database\DataManager::make()
#2 plugins/Minerware/src/LatamPMDevs/minerware/Minerware(54): LatamPMDevs\minerware\database\DataManager::getInstance()
#3 pmsrc/src/plugin/PluginBase(95): LatamPMDevs\minerware\Minerware->onLoad()
#4 pmsrc/src/plugin/PluginManager(222): pocketmine\plugin\PluginBase->__construct(object DevTools\FolderPluginLoader#24983, object pocketmine\Server#10, object pocketmine\plugin\PluginDescription#25023, string[47] C:/Users/ASUS/Desktop/PM4/plugin_data/Minerware, string[43] C:\Users\ASUS\Desktop\PM4\plugins\Minerware, object pocketmine\plugin\DiskResourceProvider#25159)
#5 pmsrc/src/plugin/PluginManager(364): pocketmine\plugin\PluginManager->internalLoadPlugin(string[43] C:\Users\ASUS\Desktop\PM4\plugins\Minerware, object DevTools\FolderPluginLoader#24983, object pocketmine\plugin\PluginDescription#25023)
#6 pmsrc/src/Server(1011): pocketmine\plugin\PluginManager->loadPlugins(string[34] C:\Users\ASUS\Desktop\PM4\plugins\)
#7 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[26] C:\Users\ASUS\Desktop\PM4\, string[34] C:\Users\ASUS\Desktop\PM4\plugins\)
#8 pmsrc/src/PocketMine(327): pocketmine\server()
#9 pmsrc(11): require(string[70] phar://C:/Users/ASUS/Desktop/PM4/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show