提供了API,如下:
[MD] # MEBWorldProtect API 文档 ## 概述 MEBWorldProtect 提供了公共API供其他插件使用,以实现统一的世界保护机制。 ## 公共API方法 ### 1. getWorldConfig(string $worldName): array 获取指定世界的完整配置。 **参数:** - `$worldName` - 世界文件夹名称 **返回值:** - `array` - 世界配置数组,如果世界未配置则返回默认配置 **示例:** ```php $mebWorldProtect = $this->getServer()->getPluginManager()->getPlugin("MEBWorldProtect"); if ($mebWorldProtect !== null) { $config = $mebWorldProtect->getWorldConfig("world"); // $config = ["restore_mob_behavior" => true, "admins" =>...[/MD]