Перейти к содержимому
Mineforgian

Auto Freeze

一个能让服务器中无人游玩时自动暂停,上线后自动恢复的模组。可有效帮助节省CPU资源和电费。 A plugin that automatically pauses the server when no players are online and resumes when a player joins. This can effectively save CPU resources and electricity costs.

Загрузки
291
Подписчики
3
Обновлён
30 января 2025 г.
Лицензия
CC-BY-NC-SA-4.0

Опубликован 28 января 2025 г.

中文 English

自动冻结

功能介绍

基础功能

  1. 自动暂停和恢复游戏
    当服务器中无人游玩时,自动暂停游戏,节省服务器资源和电费。当有玩家上线时,自动恢复游戏。

  2. 可配置的日志记录
    可通过settings.yml文件配置“在日志中和控制台记录在线人数的时间间隔”。

  3. 可配置的玩家检测频率
    可通过settings.yml文件配置“检测玩家人数并冻结/解冻游戏的频率”。

配置文件

# 配置文件
# 设为0即禁用
# 单位:游戏刻 tick (1/20s)
# 在日志中和控制台记录在线人数的时间间隔
logPlayerCountInterval: 0

# 监测玩家人数而冻结/解冻游戏的频率
# 该值越小 对游戏公平性影响越小 <=10t 几乎不可能作弊
# 该值不宜 >20t
playerCountCheckInterval: 10

同作用 其他加载器的类似模组

Fabric: Tick Stasis

Modrinth


AutoFreeze

Features

Basic Features

  1. Automatic Game Pausing and Resuming
    Automatically pause the game when no players are online to save server resources and electricity. Resume the game automatically when a player joins.

  2. Configurable Logging
    You can configure the "interval for logging the number of online players in the logs and console" through the settings.yml file.

  3. Configurable Player Detection Frequency
    You can configure the "frequency for checking player counts and freezing/unfreezing the game" through the settings.yml file.

Configuration File

# Configuration File
# Set to 0 to disable
# Unit: game tick (1/20s)
# Interval for logging the number of online players in the logs and console
logPlayerCountInterval: 0

# Frequency for checking player counts to freeze/unfreeze the game
# The smaller the value, the less impact on game fairness <=10t almost impossible to cheat
# It is not recommended to set this value >20t
playerCountCheckInterval: 10

Similar Modules for Other Loaders

Fabric: Tick Stasis

Modrinth

Ченджлог

1.1Релиз1.21.2, 1.21.3, 1.21.4 · 30 января 2025 г.

Full Changelog: https://github.com/ANT-mmmmm/autoFreeze/compare/v1.0...v1.1

自动冻结 1.1

更改

优化了监测玩家人数的逻辑:

  1. 使用了监听器,优化了运行速度
  2. 删去了playerCountCheckInterval配置选项
  3. 更改了部分描述
  4. 更改了版本号

已测试的游戏版本

  • 1.21
  • 1.21.1
  • 1.21.2
  • 1.21.3 (测试环境:leaves

Auto Freeze 1.1

Changes

Optimized the logic for detecting player count:

  1. Implemented listeners to improve performance.
  2. Removed the playerCountCheckInterval configuration option.
  3. Modified some descriptions.
  4. Changed the version number.

Tested Game Versions

  • 1.21
  • 1.21.1
  • 1.21.2
  • 1.21.3

(Tested in environment: LeavesMC)

1.0Релиз1.21.2, 1.21.3, 1.21.4 · 29 января 2025 г.

自动冻结 1.0

基础功能

  1. 若服务器中无人自动暂停,玩家上线自动启动
  2. 可通过
settings.yml

更改“在日志中和控制台记录在线人数的时间间隔”与“监测玩家人数而冻结/解冻游戏的频率”

待改进处

  1. 未开发游戏内更改设置的功能
  2. 游戏内/freeze.settings是无用的

关于开发者

联系方式:

电子邮箱:ANTmmmmm@outlook.com QQ:1504596931

AutoFreeze 1.0

Basic Features

  1. Automatically pauses the server when no players are online and resumes when a player joins.
  2. You can modify the "interval for logging the number of online players in the console and logs" and the "frequency for monitoring player counts to freeze/unfreeze the game" through the settings.yml file.

Areas for Improvement

  1. In-game settings modification functionality has not been developed yet.
  2. The in-game command /freeze.settings is currently non-functional.

About the Developer

Contact Information:

Email: ANTmmmmm@outlook.com
QQ: 1504596931

Комментарии

Загружаем…