Untitled
raw download clone
TEXT
views 13
,
size 5660 b
version: 3.0.0-beta
# 使用 UTF-8 编码,区分大小写

# 日志
log:
  # 日志存储
  storage:
    enabled: true # 是否开启
    flush_interval: 60 # 刷新缓存间隔,秒

# 任务调度器
scheduler:
  delay: 0 # 首次执行延迟
  execute_interval: 300 # 执行间隔,秒

# 丢下掉落物记录
player_drop_record:
  enabled: true # 是否开启

# 捡起掉落物记录
player_pickup_record:
  enabled: true # 是否开启

# 实体清理
clean_entity:
  enabled: true # 是否开启
  # 执行器
  executor:
    type: SCHEDULER # 调度执行器
    # 参数
    properties:
      # 优先级
      priority: 1
    # 倒计时
    countdown:
      # 通知器
      notifier:
        # 倒计时秒数
        seconds: '1-60'
        # 通知
        notification:
          type: BOSSBAR
          # 参数
          properties:
            title: '&b即将清理怪物,&c倒计时: ${current}秒'
            color: BLUE
            style: SOLID
            progress_style: 'DECREASING'
    properties:
      interval: 3600 
  # 世界正则表达式
  worlds:
    - '.*'
  target:
    # 包含
    includes:
      '1':
        type: CLASS
        properties:
          classes:
            - 'Monster'
    # 除外
    excludes:
      '1':
        type: METADATA
        properties:
          keys:
            - 'MyPet'
            - 'NPC'
      '2':
        type: CUSTOM_NAME
        properties:
          regexes:
            - '.*'
      '3':
        type: ENUM
        properties:
          regexes:
            - 'ENDER_DRAGON'
            - 'ZOMBIE_VILLAGER'

# 清理掉落物
clean_drop:
  enabled: true
  executor:
    type: SCHEDULER
    properties:
      priority: 2
    countdown:
      notifier:
        seconds: '1-60'
        notification:
          type: BOSSBAR
          properties:
            title: '&b即将清理掉落物,&c倒计时: ${current}秒'
            color: BLUE
            style: SOLID
            progress_style: 'DECREASING'
  worlds:
    - '.*'
  target:
    includes:
      '1':
        type: ENUM
        properties:
          regexes:
            - '.*'
    excludes:
      '1':
        type: ENCHANTMENT
        properties:
          regexes:
            - 'DAMAGE_ALL'
            - '.*'
      '2':
        type: CUSTOM_NAME
        properties:
          regexes:
            - '.*'
      '3':
        type: LORE
        properties:
          regexes:
            - '.*'
      '4':
        type: ENUM
        properties:
          regexes:
            - '.*_BOX'
            - 'DIAMOND'

# 区块密集实体清理
clean_crowed_entity:
  enabled: true
  check_event: true
  executor:
    type: INTERVAL
    countdown:
      notifier:
        enabled: false
    properties:
      interval: 500
  worlds:
    - '.*'
  limits:
    '1':
      threshold: 3
      target:
        includes:
          '1':
            type: CLASS
            properties:
              classes:
                - 'Monster'
        excludes:
          '1':
            type: METADATA
            properties:
              keys:
                - 'MyPet'
                - 'NPC'
          '2':
            type: ENUM
            properties:
              regexes:
                - 'ENDER_DRAGON'
                - 'ZOMBIE_VILLAGER'
          '3':
            type: CUSTOM_NAME
            properties:
              regexes:
                - '.*'

# 自动重启
auto_restart:
  enabled: false
  executor:
    type: TIME
    properties:
      async: true # 使用异步线程
      times: # 24 小时制时间
        - '20:54:00'
    countdown:
      notifier:
        seconds: '1-60'
        notification:
          type: BOSSBAR
          properties:
            title: '&e重启倒计时 ${current}秒'
            color: YELLOW
            style: SOLID
  before_commands: # 重启前执行的指令
    - 'save-all'

# 实体生成间隔限制
entity_spawn_interval_limit:
  enabled: true
  worlds:
    - '.*'
  limits:
    '1':
      interval: 1000
      target:
        includes:
          '1':
            type: ENUM
            properties:
              regexes:
                - 'ZOMBIE'
        excludes: {}

# QuickShop 偷东西bug修复
quickshop_bug_fix:
  enabled: true

# 禁止非法玩家
illegal_player_limit:
  enabled: false
  deop_on_quit: false # 下线就取消OP
  set_survival_mode_on_quit: true # 下线就设置为生存模式
  creative_mode_whitelist: # 创造模式白名单
    - 'Zorua_Shi'
  op_whitelist: # OP 白名单
    - 'Zorua_Shi'

# 红石限制
redstone_limit:
  enabled: true
  worlds:
    - '.*'
  checker:
    type: BLOCK_COUNTER # 方块计次检查器
    block_whitelist: # 方块白名单
      - 'DAYLIGHT_DETECTOR'
    reset_interval: 10 # 检测持续时间
    threshold: 15 # 60秒内不允许激活超过15次红石信号
    ban_duration: 120   # 封禁时间,秒
    notify_interval: 10 # 通知间隔
    below_tps: 20 # 低于 tps 将启用限制

# 农作物防踩踏
trample_crop_limit:
  enabled: false

# 聊天限制
chat_limit:
  enabled: true
  interval: 1 # # 两次发言间隔,秒
  bad_words: # 正则表达式
    - 'nmsl'
    - '[草操艹]你[吗妈]'
  replace_string: '*' # 替换字符串,
  cancelled: false # 是否直接取消发送

# 命令限制
command_limit:
  enabled: true
  # 黑名单正则表达式
  blacklist:
    - '/minecraft:.*'
    - '/reload'
close fullscreen
Login or Register to edit or fork this paste. It's free.