LogsRemover 
一个用于自动删除旧日志文件的 Minecraft 插件。
功能
命令
-
/logsremover reload
重新加载插件配置。
权限: logsremover.reload
-
/logsremover help
显示可用命令列表。
-
/logsremover removeall
删除指定目录中的所有日志文件。
注意: 需要使用 /logsremover confirm 进行确认,且仅能从控制台使用。
-
/logsremover update
下载并应用最新的可用更新。
配置
您可以通过编辑位于 plugins/LogsRemover 文件夹中的 config.yml 文件来自定义插件行为。
# ██╗░░░░░░█████╗░░██████╗░░██████╗██████╗░███████╗███╗░░░███╗░█████╗░██╗░░░██╗███████╗██████╗░
# ██║░░░░░██╔══██╗██╔════╝░██╔════╝██╔══██╗██╔════╝████╗░████║██╔══██╗██║░░░██║██╔════╝██╔══██╗
# ██║░░░░░██║░░██║██║░░██╗░╚█████╗░██████╔╝█████╗░░██╔████╔██║██║░░██║╚██╗░██╔╝█████╗░░██████╔╝
# ██║░░░░░██║░░██║██║░░╚██╗░╚═══██╗██╔══██╗██╔══╝░░██║╚██╔╝██║██║░░██║░╚████╔╝░██╔══╝░░██╔══██╗
# ███████╗╚█████╔╝╚██████╔╝██████╔╝██║░░██║███████╗██║░╚═╝░██║╚█████╔╝░░╚██╔╝░░███████╗██║░░██║
# ╚══════╝░╚════╝░░╚═════╝░╚═════╝░╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚═╝░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝
#
# 联系开发者 (Discord): groundbreakingmc
# 如有任何建议或想要报告错误,请使用: https://github.com/groundbreakingmc/LogsRemover/issues
# 在此指定您的日志文件必须有多旧才会被删除
# (如果您不写字母,它将按小时计算)
# m = 月 | w = 周 | d = 天 | h = 小时
# 示例:
# 如果您想删除超过 1 个月零 2 周的文件,请指定 -> 1m 2w
# 如果您想删除超过 1 周零 3 天的文件,请指定 -> 1w 3d
# 如果您想删除超过 1 个月、1 周、3 天和 2 小时的文件,请指定 -> 1m 1w 3d 2h
delete-if-older-then: 1w
# 在此指定您的日志目录
logs-directory: 'logs'
# 更新检查器
updates:
# 插件是否需要检查更新?
check: true
# 如果可能,插件是否需要下载新版本?
auto-update: false
# 不要修改此项
config-version: 1.0
no-permission: "§c抱歉,您没有执行此命令的权限。"```
LogsRemover 
A Minecraft plugin for automatically removing old log files.
Features
-
Automatic Log File Removal
Easily deletes old log files based on your specified time threshold.
-
Update Checker
Notifies you of available updates, with an option to automatically download and apply them.
Commands
-
/logsremover reload
Reloads the plugin configuration.
Permission: logsremover.reload
-
/logsremover help
Displays a list of available commands.
-
/logsremover removeall
Deletes all log files in the specified directory.
Note: Requires confirmation with /logsremover confirm and can be used only from console.
-
/logsremover update
Downloads and applies the latest available update.
Configuration
You can customize the plugin behavior by editing the config.yml file located in the plugins/LogsRemover folder.
# ██╗░░░░░░█████╗░░██████╗░░██████╗██████╗░███████╗███╗░░░███╗░█████╗░██╗░░░██╗███████╗██████╗░
# ██║░░░░░██╔══██╗██╔════╝░██╔════╝██╔══██╗██╔════╝████╗░████║██╔══██╗██║░░░██║██╔════╝██╔══██╗
# ██║░░░░░██║░░██║██║░░██╗░╚█████╗░██████╔╝█████╗░░██╔████╔██║██║░░██║╚██╗░██╔╝█████╗░░██████╔╝
# ██║░░░░░██║░░██║██║░░╚██╗░╚═══██╗██╔══██╗██╔══╝░░██║╚██╔╝██║██║░░██║░╚████╔╝░██╔══╝░░██╔══██╗
# ███████╗╚█████╔╝╚██████╔╝██████╔╝██║░░██║███████╗██║░╚═╝░██║╚█████╔╝░░╚██╔╝░░███████╗██║░░██║
# ╚══════╝░╚════╝░░╚═════╝░╚═════╝░╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚═╝░╚════╝░░░░╚═╝░░░╚══════╝╚═╝░░╚═╝
#
# Contact dev(discord): groundbreakingmc
# Any suggestions or wanna report any error, use: https://github.com/groundbreakingmc/LogsRemover/issues
# Specify here how old does your log file have to be, to be deleted
# (if you don't write the letter, it will be counted as hours)
# m = month | w = week | d = day | h = hours
# Examples:
# If you want to delete files older than 1 month and 2 weeks, specify -> 1m 2w
# If you want to delete files older than 1 week and 3 days, specify -> 1w 3d
# If you want to delete files older than 1 month, 1 week, 3 days and 2 hours, specify -> 1m 1w 3d 2h
delete-if-older-then: 1w
# Specify here your logs directory
logs-directory: 'logs'
# Updates checker
updates:
# Does plugin need to check for updates?
check: true
# Does plugin need to download new version if possible?
auto-update: false
# don't touch it
config-version: 1.0
no-permission: "§cSorry, but you don't have permission to execute this command."```
评论 0
登录后参与评分
还没有评论,来抢沙发吧