menu
#7862649 Call to undefined method pocketmine\block\BlockLegacyIds::OBSIDIAN()

Submitted by PocketMine-MP 4.10.1

General information

Version: 4.10.1
Git commit: a39938e6
Plugin involvement: Direct
Report date: 2022-11-24 14:33:19 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux e7bfcef6-f3bc-49f9-89bf-5b2f36f2779c 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\block\BlockLegacyIds::OBSIDIAN()
File: plugins/CombatWall/src/itoozh/CombatWall
Line: #46
Error level: Error
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

/** @var AxisAlignedBB[][] */
private array $regions = [];
private Block $barrierBlock;


public function onLoad(): void
{
$this->barrierRadius = 3;
$this->barrierBlock = BlockFactory::getInstance()->get(BlockLegacyIds::OBSIDIAN());
$this->regions[$this->getConfig()->get("world")][] = AABBUtils::fromCoordinates(
Vector3Utils::fromString($this->getConfig()->get("pos1")),
Vector3Utils::fromString($this->getConfig()->get("pos2"))
)->expand(0.0001, 0, 0.0001);
}

public function onEnable(): void
{
$this->saveDefaultConfig();
self::$tag_time = $this->getConfig()->get("tag-time");
#0 pmsrc/src/plugin/PluginBase(75): itoozh\CombatWall->onLoad()
#1 pmsrc/src/plugin/PluginManager(213): pocketmine\plugin\PluginBase->__construct(object DevTools\FolderPluginLoader#22162, object pocketmine\Server#10, object pocketmine\plugin\PluginDescription#22288, string[38] /home/container/plugin_data/CombatWall, string[34] /home/container/plugins/CombatWall, object pocketmine\plugin\DiskResourceProvider#29301)
#2 pmsrc/src/plugin/PluginManager(365): pocketmine\plugin\PluginManager->internalLoadPlugin(string[34] /home/container/plugins/CombatWall, object DevTools\FolderPluginLoader#22162, object pocketmine\plugin\PluginDescription#22288)
#3 pmsrc/src/Server(1009): pocketmine\plugin\PluginManager->loadPlugins(string[24] /home/container/plugins/, int 0)
#4 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#5 pmsrc/src/PocketMine(328): pocketmine\server()
#6 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show