跳转至

配置设置

PlotSquared 的配置文件位于 plugins/PlotSquared/ 目录。

主配置 (config.yml)

基础设置

# 最大玩家地块数
max-plots: 10

# 是否启用自动分配
auto-claim: true

# 地块间距
plot-gap: 2

# 最大建筑高度
max-height: 256

# 最小建筑高度
min-height: 0

地块大小

plot:
  width: 42      # 地块宽度(格)
  height: 42     # 地块高度(格)
  gap: 2         # 地块间距

道路设置

road:
  width: 7       # 道路宽度
  height: 64     # 道路高度
  block: stone   # 道路方块

旗帜默认值

flags:
  default:
    use: false
    place: true
    break: true
    vehicle-use: true
    mob-spawn: false

性能设置

performance:
  chunk-processor: true
  world-reduction: true
  max-block-changes: 10000

消息配置

messages:
  prefix: "&7[PlotSquared] "
  claim-success: "&a地块认领成功!"
  claim-failed: "&c认领失败,地块已被占用。"

世界配置 (worlds.yml)

每个世界的独立设置:

worlds:
  plotworld:
    type: PLOT
    auto-claim: true
    plot-size: 42
    road-width: 7
    max-plots: 10
    flags:
      default:
        use: false
        place: true

高级配置

地块分析

analysis:
  enabled: true
  interval: 300    # 分析间隔(秒)
  max-blocks: 100000

区块处理器

chunk-processor:
  enabled: true
  threads: 2
  batch-size: 100

命令别名 (commands.yml)

commands:
  claim: c
  clear: cl
  home: h
  visit: v