Files
PlayerBlockLife/src/main/resources/config.yml
xiaobai 8b502459b0 1.0.1:Fix bug:[21:01:10 INFO]: [PBL] §a========================================
[21:01:10 INFO]: [PBL] §ePlayerBlockLife v1.0.1-1.20.4 已启用
              [21:01:10 INFO]: [PBL] §e作者: [YourName]
              [21:01:10 INFO]: [PBL] §a========================================
2026-02-13 22:03:17 +08:00

131 lines
2.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PlayerBlockLife 配置文件
config-version: 1
# 方块设置
blocks:
# 每个玩家的生命方块数量
amount: 5
# 方块生成范围(以玩家为中心的正方形边长的一半)
spread: 5
# 方块埋藏深度0为地面负数为地下
depth: -1
# 方块材质类型
material: player_head
# 游戏规则
game:
# 方块被挖光时是否死亡
die_when_blocks_gone: true
# 死亡后是否变成观察者
become_spectator: true
# 是否启用生命值系统
health_system: true
# 广播设置
broadcast:
# 方块被破坏时是否广播
on_block_break: true
# 广播范围(格数)
range: 30
# 玩家死亡时是否全服广播
on_player_death: true
# 挖掘奖励
break_rewards:
# 是否给予经验
give_exp: true
# 经验数量
exp_amount: 5
# 皮肤系统
skin:
# 是否启用皮肤系统
enabled: true
# 皮肤来源 (player_profile, local_cache)
source: player_profile
# 缓存设置
cache:
# 缓存过期时间(天)
expire_days: 7
# 数据存储
storage:
# 存储类型 (yaml, json, sqlite)
type: yaml
# 自动保存
auto_save:
# 是否启用自动保存
enabled: true
# 保存间隔(秒)
interval: 300
# 保护设置
protection:
# 是否保护生命方块不被爆炸破坏
protect_from_explosions: true
# 是否保护生命方块不被火焰烧毁
protect_from_fire: true
# 是否保护生命方块不被活塞推动
protect_from_pistons: true
# 自动生成设置
auto-generation:
# 玩家加入时是否自动生成生命方块
enabled: true
# 生成位置要求:上方无方块覆盖的地表
require_open_sky: true
# 最大尝试次数(如果找不到合适位置)
max_attempts: 50
# 生成失败时的处理方式 (none, notify, teleport_to_spawn)
on_failure: notify
# 命令启用配置
commands:
# setlifeblocks 命令
setlifeblocks:
enabled: true
# 是否允许玩家自己使用
allow_self_use: true
# 是否允许管理员为其他玩家设置
allow_admin_use: true
# checklifeblocks 命令
checklifeblocks:
enabled: true
# 是否允许玩家自己查看
allow_self_use: true
# 是否允许管理员查看其他玩家
allow_admin_use: true
# pblreload 命令
pblreload:
enabled: true
# 仅限管理员使用
admin_only: true
# pbldelete 命令
pbldelete:
enabled: true
# 仅限管理员使用
admin_only: true
# pblrevive 命令
pblrevive:
enabled: true
# 仅限管理员使用
admin_only: true
# pblstats 命令
pblstats:
enabled: true
# 仅限管理员使用
admin_only: true
# 消息配置(现在使用独立的 messages.yml 文件)
messages:
# 是否启用独立的消息文件
use_external_file: true
# 外部消息文件名称
external_file: "messages.yml"