PAPI - ConfigEase 图标

PAPI - ConfigEase

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/papi-configease
资源信息

Minecraft 版本: 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7

平台: bukkit paper purpur spigot

标签: management utility

资源介绍

ConfigEase is a PlaceholderAPI expansion that allows you to read YAML or JSON configuration files from other plugins using placeholders.
*Please place this plugin in the plugins folder when installing.

%<identifier>_<pluginName>_<configFile>_<path...>%

  • <identifier>: yamlConfig or jsonConfig
  • <pluginName>: The folder name under /plugins, where the config file is located
  • <configFile>: The file name (e.g. config.yml or data.json)
  • <path>: The key path inside the config file, using . as level separator

YAML Example

File: plugins/Essentials/config.yml

spawn:
  world: "world"
  location:
    x: 100
    y: 64
    z: 200
welcome_message: "Welcome, player!"

Placeholders:

%yamlConfig_Essentials_config.yml_spawn.world% → world
%yamlConfig_essentials_config.yml_spawn.location.x% → 100
%yamlConfig_essentials_config.yml_welcome_message% → Welcome, player!

JSON Example

File: plugins/test/data.json

{
  "users": {
    "1234": {
      "name": "Pudding",
      "score": 99
    }
  },
  "settings": {
    "motd_message": "Welcome!",
    "features": ["a", "b", "c"]
  }
}

Placeholders:

%jsonConfig_test_data.json_users.1234.name% → Pudding
%jsonConfig_test_data.json_settings.motd_message% → Welcome!
%jsonConfig_test_data.json_settings.features.1% → b

Config

# Default root directory where plugin config files are located
default_path: "plugins"

# Error messages shown when placeholder evaluation fails
messages:
  invalid_format: "Invalid Format"
  file_not_found: "File Not Found"
  no_key: "No Key"
  error: "Error"
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Triple Baka Copper Golem (Javaficated)

价格:0 墨喵币
下载量:0

查看详情
eggshells

价格:0 墨喵币
下载量:0

查看详情
Eye to city

价格:0 墨喵币
下载量:0

查看详情
Simply FPS

价格:0 墨喵币
下载量:0

查看详情