• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
JulySafe —— 高版本服务端优化方案

原创 付费 开源 JulySafe —— 高版本服务端优化方案 2024-02-23

版权类型
原创
插件中文名称
柒月安全卫士
插件英文名称
JulySafe
原帖地址
#
支持的核心(服务端)
  1. Spigot
  2. Paper
  3. Purpur
语言支持
中文(简体)
适配版本(Java)
  1. 1.20
  2. 1.19
  3. 1.18
  4. 1.17
  5. 1.16
  6. 1.15
  7. 1.14
  8. 1.13
  9. 1.12
  10. 1.11
  11. 1.10
  12. 1.9
  13. 1.8
[MD]
# 功能

- 自动重启
- 方块防爆
- 实体防爆
- 实体清理
- 区块密集实体清理
- 实体生成限制
- 掉落物清理
- 火蔓延限制
- 聊天黑名单
- 聊天频率限制
- 命令黑名单
- 命令频率限制
- 农作物防踩踏
- 非法玩家限制
- 掉落物拾取记录
- 掉落物丢弃记录
- 高频红石限制

# 特性

## 多版本支持

插件支持 1.8 及以上的所有游戏版本。

## 高度自定义

插件内提供了大量可自定义项,你可以自行开关每个模块,限制功能在哪个世界开启。

## 调度器

插件提供了多种任务执行方式,以清理实体为例,你可以设置为:

* 在某个时间执行
* 按间隔执行
* 调度执行

## 红石阻断器

多达四种类型的红石阻断器,有效监测高低频红石机器。

## 实体/掉落物 过滤器

基于过滤器你用少量配置就能实现:清理所有怪物但不清理僵尸村民,清理所有掉落物但不清理有 "绑定" lore 的物品等一系列操作。

## 垃 圾桶

作者开发了配套的附属插件(发电后可免费获取),可以将被清理的垃 圾回收至垃 圾桶中。

# 配置文件
[/MD]
YAML:
# 实体清理
entity_clean:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'
  # 执行器
  executor:
    # 使用调度器
    type: SCHEDULER
    # 参数
    properties:
      # 优先级
      priority: 1
    # 倒计时器
    countdown_timer:
      # 倒计时秒数
      seconds: '1-60'
      # 倒计时通知
      notification:
        # 倒计时类型
        type: TITLE
        # 参数
        properties:
          title: '&e即将清理生物'
          subtitle: '&c倒计时 ${countdown} 秒'
          stay: 20
          fade_in: 20
          fade_out: 20
    # 完成器
    completer:
      notification:
        type: MESSAGE
        properties:
          message: '&a[JulySafe] &b清理完毕, 共计清理 &e${total} &b个生物.'
  # 实体集
  entity_set:
    # 包含
    includes:
      'entity_filter_1':
        # 类过滤器
        type: CLASS
        properties:
          classes:
            - 'org.bukkit.entity.Monster'
    # 除外
    excludes:
      'entity_filter_1':
        # METADATA 过滤器
        type: METADATA
        properties:
          keys:
            - 'MyPet' # 宠物插件生物
            - 'NPC' # Citizens 插件生物
      'entity_filter_2':
        # 自定义名过滤器(头顶的名字)
        type: CUSTOM_NAME
        properties:
          regexes:
            - '.*'
      'entity_filter_3':
        # 枚举过滤器
        type: ENUM
        properties:
          regexes:
            - 'ENDER_DRAGON'
            - 'ZOMBIE_VILLAGER'

# 区块实体限制
chunk_entity_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'
  # 执行器
  executor:
    # 定时执行器
    type: TIMER
    properties:
      # 周期,秒
      period: 0
    # 显式关闭倒计时器和完成器
    countdown_timer.enabled: false
    completer.enabled: false
  # 限制
  limits:
    'limit_1':
      # 阈值
      threshold: 10
      # 实体集
      entity_set:
        # 包含
        includes:
          'entity_filter_1':
            type: CLASS
            properties:
              classes:
                - 'org.bukkit.entity.Animals'
        # 不包含
        excludes: {}

# 实体生成限制
entity_spawn_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'
  # 限制
  limits:
    'limit_1':
      # 生成原因(正则表达式)
      spawn_reasons:
        - '.*'
      # 实体集
      entity_set:
        # 包含
        includes:
          'entity_filter_1':
            type: ENUM
            properties:
              regexes:
                - 'PIG_ZOMBIE'
        # 不包含
        excludes: {}
      # 取消生成
      cancelled: false
      # 间隔阈值(毫秒,当且仅当 cancelled 不为 true 时有效,可删除该项,默认为 -1,即不限制)
      interval: 1000

# 清理掉落物
drop_clean:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'
  # 执行器
  executor:
    # 使用调度器
    type: SCHEDULER
    # 参数
    properties:
      # 优先级
      priority: 1
    # 倒计时器
    countdown_timer:
      # 倒计时秒数
      seconds: '1-60'
      # 倒计时通知
      notification:
        # 倒计时类型
        type: TITLE
        # 参数
        properties:
          title: '&e即将清理掉落物'
          subtitle: '&c倒计时 ${countdown} 秒'
          stay: 20
          fade_in: 20
          fade_out: 20
    # 完成器
    completer:
      notification:
        type: MESSAGE
        properties:
          message: '&a[JulySafe] &b清理完毕, 共计清理 &e${total} &b个掉落物.'
  # 物品集
  item_set:
    # 包含
    includes:
      'item_filter_1':
        # 枚举过滤器
        type: ENUM
        properties:
          regexes:
            - '.*'
    # 不包含
    excludes:
      'item_filter_1':
        # 附魔过滤器
        type: ENCHANTMENT
        properties:
          regexes:
            - 'DAMAGE_ALL'
      'item_filter_2':
        # 自定义名过滤器
        type: DISPLAY_NAME
        properties:
          regexes:
            - '.*'
      'item_filter_3':
        # LORE 过滤器
        type: LORE
        properties:
          regexes:
            - '已绑定'
      'item_filter_4':
        # 枚举过滤器
        type: ENUM
        properties:
          regexes:
            - '.*_BOX'
            - 'DIAMOND'

# 自动重启
auto_restart:
  # 是否开启
  enabled: false
  # 执行器
  executor:
    # 定时执行器
    type: FIXED_TIME
    properties:
      # 24 小时制时间
      times:
        - '10:55:00'
    # 倒计时器
    countdown_timer:
      # 倒计时秒数
      seconds: '1-60'
      notification:
        # 倒计时类型
        type: TITLE
        # 参数
        properties:
          stay: 20
          fade_in: 20
          fade_out: 20
          title: '&a即将重启服务器'
          subtitle: '&e倒计时: ${countdown} 秒'
    completer.enabled: false
  # 重启时执行的指令
  before_restart_commands:
    - 'save-all'
  # 在重启时踢出所有玩家
  kick_all_before_restart: true

# 玩家丢下掉落物记录
player_drop_record:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 玩家捡起掉落物记录
player_pickup_record:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 红石限制
redstone_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'
  # 检测器类型
  # BLOCK_COUNTER 单方块计次器
  # CHUNK_COUNTER 区块计次器
  # BLOCK_TIMER 单方块计时器
  # CHUNK_TIMER 区块计时器
  detector_type: CHUNK_COUNTER
  # 方块白名单
  block_whitelist:
    - 'DAYLIGHT_DETECTOR'
  # 检测重置周期(秒)
  reset_period: 10
  # 阈值
  threshold: 5
  # 封禁时间,秒
  ban_duration: 120
  # 通知附近玩家的范围(x,y,z)
  notify_player_range: '15,255,15'
  # 封禁通知间隔
  notify_player_interval: 10
  # 是否破坏红石装置
  destroy_block: true

# 非法玩家限制
illegal_player_limit:
  # 是否开启
  enabled: false
  # 下线就取消OP
  deop_on_quit: true
  # 下线就设置为生存模式
  set_survival_mode_on_quit: true
  # 创造模式白名单
  creative_mode_whitelist:
    - 'July_ss'
  op_whitelist:
    - 'July_ss'

# 农作物防踩踏
crop_trample_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 火蔓延限制
fire_spread_limit:
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 实体爆炸限制
entity_explode_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 方块爆炸限制
block_explode_limit:
  # 是否开启
  enabled: true
  # 世界集
  world_set:
    # 包含的世界正则表达式
    includes:
      - '.*'
    # 排除的世界正则表达式
    excludes:
      - 'excluded_world'

# 聊天刷屏限制
chat_spam_limit:
  # 是否开启
  enabled: true
  # 最短发言间隔限制
  threshold: 3000

# 聊天黑名单
chat_blacklist:
  # 是否开启
  enabled: true
  # 黑名单正则表达式
  blacklist:
    - '傻福'
    - 'nmsl'
    - '[草操艹]你[吗妈]'
  # 替换字符串
  replace_string: '你是靓仔'
  # 是否直接取消发送
  cancel_event: false

# 命令黑名单
command_blacklist:
  # 是否开启
  enabled: true
  # 黑名单正则表达式
  blacklist:
    - '/minecraft:.*'

# 命令使用间隔限制
command_spam_limit:
  # 是否开启
  enabled: true
  # 阈值
  threshold: 1000
[MD]
# 开源

[GitHub](https://github.com/julyss2019/JulySafe)

# 下载

[爱发电](https://afdian.com/@july_ss)


购买后你将获得:

* 作者提供的技术支持服务
* 可直接下载的最新插件


# 使用文档

[https://wiki.void01.com/JulySafe/guide/]

# 截图

![](https://s2.loli.net/2023/08/13/OMLJo8Stf7IKHZA.gif)

![](https://s2.loli.net/2023/08/13/jFk5XseQwz1pJvB.gif)

![image.png](https://s2.loli.net/2022/07/15/JiAgWERcl3LjTUX.png)



# 使用情况统计

![](https://bstats.org/signatures/bukkit/JulySafe.svg)
[/MD]
  • 超爱
反馈: 心海
作者
柒月大表哥
查看
1,714
首次发布
最后更新

评分

5.00 星 1 次评分

最新评价

这是我迄今为止用过最好用的清理优化插件,功能非常全面,效果明显!
后退
顶部 底部