ServerRestartWarning
由 XBP 开发。
什么是 ServerRestartWarning?
ServerRestartWarning 是一款插件,允许你在服务器即将重启时向玩家发出警告。特别适合大型服务器、拥有庞大社区的服务器或朋友间的服务器。它赋予玩家设置家(homes)并将物品放入箱子中的能力,从而避免丢失工作成果!
ServerRestartWarning 未来会被弃坑吗?
截至目前,不会。我们绝无弃坑打算,未来的更新将仅针对修复漏洞或采纳你们的建议。我们不会终止开发。
赞助
命令
/srw - 权限:serverrestartwarning.srw - 带警告重启服务器的命令。
/srw [number] - 权限:serverestartwarning.srw - 在 [number] 秒后带警告重启服务器的命令。
/srw cancel - 权限:serverrestartwarning.cancel - 取消计划中重启的命令。(取消任务)
/ssw - 权限:serverrestartwarning.ssw - 带警告(定时)关闭服务器的命令,受 '/srwc' 命令影响
/ssw cancel - 权限:serverrestartwarning.cancel - 取消计划中重启的命令。(取消任务)
/ssw [number] - 权限:serverestartwarning.ssw - 在 [number] 秒后带警告重启服务器的命令。
指标收集 / 更新器
本插件内包含指标收集功能,并具备自动更新插件的能力。不过,这些功能是可选禁用的。我们建议你保持启用状态,以便提供支持,也帮助我们了解目标受众。
指标信息 - 根据《通用数据保护条例》,我们致力于仅分享一般性信息。这包括:服务器软件、服务器核心、服务器 Java 版本等。我们存储的信息可在 bstats.org 公开查看。
更新器信息 - 更新由我们自己进行,并获得 Bukkit 官方授权。我们尽一切努力确保更新过程安全,并符合条款和条件的标准。
配置文件
#
# _____ _____ _ ___ __ _
# / ____| | __ \ | | | \ \ / / (_)
# | (___ ___ _ ____ _____ _ __| |__) |___ ___| |_ __ _ _ __| |\ \ /\ / /_ _ _ __ _ __ _ _ __ __ _
# \___ \ / _ \ '__\ \ / / _ \ '__| _ // _ \/ __| __/ _` | '__| __\ \/ \/ / _` | '__| '_ \| | '_ \ / _` |
# ____) | __/ | \ V / __/ | | | \ \ __/\__ \ || (_| | | | |_ \ /\ / (_| | | | | | | | | | | (_| |
# |_____/ \___|_| \_/ \___|_| |_| \_\___||___/\__\__,_|_| \__| \/ \/ \__,_|_| |_| |_|_|_| |_|\__, |
# __/ |
# |___/
#
#ServerRestartWarning by ExplosiveStraw/XBP. 如果你喜欢这个插件,请在 Bukkit 上留下五星好评!
#
# PREFIX
#
# 管理员/广播消息的消息前缀
prefix: '&d&lServerRestartWarning &8>&7 '
#
# TIMERS
#
# 输入命令后到服务器关闭/重启之间的时长。
timers:
server-restart-time: 15
server-shutdown-time: 15
#
# AUTO-KICK
#
# 当服务器关闭时,玩家将被自动踢出,并显示自定义消息。
auto-kick: true
#
# MESSAGES
#
# 消息描述:-
# 权限 - 当玩家权限不足时显示的消息。
# 警告 - 在重启/关闭前向所有在线玩家广播的消息。
# 确认 - 发送给操作员以确认重启/关闭的消息。
# 踢出 - 当玩家被踢出时显示的消息。
#
# 占位符:-
# {STATE} - 本节中 state 下给出的状态,如 stopped(已停止)、restart(重启)。
# {SECONDS} - 服务器重启/关闭前的秒数
# {COMMAND} - 操作员刚刚输入的指令
messages:
permission: '&c你无权使用此命令。只有拥有特定权限的玩家才能使用此命令!'
warning: '服务器将在 {SECONDS} 秒后 {STATE}。'
confirmation: '&7再次输入 {COMMAND} 以重启/停止此服务器!'
kick: '&d&l此服务器已 {STATE},请重新加入!'
state:
stopped: 'shutdown'
restart: 'restarted'
#
# 频率
#
# 这些时间用于我们在服务器即将重置前警告玩家的时机,例如重启前 60-3 秒。
frequencies:
- 60
- 30
- 20
- 15
- 10
- 5
- 3
#
# 保存世界
#
# 是否在服务器关闭/重启前保存世界?如果是,请指定在执行任务前多少秒进行保存。
save-world-settings:
save-world: true
interval: 10
#
# 自动更新设置
#
# 如果你希望在新版本发布时插件自动更新,请将以下值改为 true!
auto-update: true
#
# 开发者调试设置
#
# 如果 SRW 的开发者想要加入,启用此项将在其加入时发送调试消息给开发者。
developer-debug: true
#
# 所有者更新日志
#
changelog: true
我可以对这个插件做什么?
允许你执行以下操作:
- 用于个人用途(在你的网络、服务器等上)。
- 修改插件的 CONFIG.YML 部分。
禁止你执行以下操作:
- 发布源代码。
- 商业销售或使用该插件。
- 修改插件的 PLUGIN.YML 部分。
- 在你自己的服务上重新分发该插件。
当前已知错误?
- 目前未知,但我们正在积极排查。
截图
半时广播将四舍五入数字。(/srw)
取消命令消息(/srwc)
自定义时间指定重启(/srw -o [秒数])
需要更多支持?
遗憾的是,目前我提供支持的唯一渠道是 Discord。你可以通过点击 此处 加入 Discord。
© xbp 2023 - 保留所有权利,除非另有明确声明。
ServerRestartWarning
Developed by XBP.
What is ServerRestartWarning?
ServerRestartWarning is a plugin that enables the ability to warn your players when your server is going to restart. Especially good for larger servers/servers with larger communities or servers for friends. Enables people the ability to set homes, put things in chests so they don't lose work!
Is ServerRestartWarning ever going to be abandoned?
As of now, no. There is no intention to EVER abandon this plugin and future updates will be for bugs or your suggestions. We are not going to terminate development.
Sponsor
Commands
/srw - Permission: serverrestartwarning.srw - Command to restart the server with warning.
/srw [number] - Permission: serverestartwarning.srw - Command to restart the server with warning after [number] seconds.
/srw cancel - Permission: serverrestartwarning.cancel - Command to cancel a scheduled restart. (Cancels the task)
/ssw - Permission: serverrestartwarning.ssw - Command to shutdown the server with warning (timed) and is affected by '/srwc' command
/ssw cancel- Permission: serverrestartwarning.cancel - Command to cancel a scheduled restart. (Cancels the task)
/ssw [number] - Permission: serverestartwarning.ssw- Command to restart the server with warning after [number] seconds.
Collection of Metrics / Updater
Inside of this plugin we collect metrics & we have the ability to auto-update our plugins. This is disable-able however. We suggest you keep these enabled for support and also so we understand our target audience.
Metrics Information - Under General Data Protection, we make efforts to only share information which is general. This includes, Server Software, Server Cores, Server Java Version etc. Information we store is publicly available at bstats.org.
Updater Information - Updates are made by ourselves and our authorized by Bukkit Staff. We make all efforts to ensure the update process is safe and to standards of terms and conditions.
Configuration File
#
# _____ _____ _ ___ __ _
# / ____| | __ \ | | | \ \ / / (_)
# | (___ ___ _ ____ _____ _ __| |__) |___ ___| |_ __ _ _ __| |\ \ /\ / /_ _ _ __ _ __ _ _ __ __ _
# \___ \ / _ \ '__\ \ / / _ \ '__| _ // _ \/ __| __/ _` | '__| __\ \/ \/ / _` | '__| '_ \| | '_ \ / _` |
# ____) | __/ | \ V / __/ | | | \ \ __/\__ \ || (_| | | | |_ \ /\ / (_| | | | | | | | | | | (_| |
# |_____/ \___|_| \_/ \___|_| |_| \_\___||___/\__\__,_|_| \__| \/ \/ \__,_|_| |_| |_|_|_| |_|\__, |
# __/ |
# |___/
#
#ServerRestartWarning developed by ExplosiveStraw/XBP. If you like this plugin, leave 5 stars on bukkit!
#
# PREFIX
#
# Message prefix on operator/broadcast messages
prefix: '&d&lServerRestartWarning &8>&7 '
#
# TIMERS
#
# How long after command has been entered before the server is shutdown/rebooted.
timers:
server-restart-time: 15
server-shutdown-time: 15
#
# AUTO-KICK
#
# Players will be automatically kicked when the server shutsdown with a custom message.
auto-kick: true
#
# MESSAGES
#
# Message Descriptions: -
# Permission - The message given when a player has insufficient permissions.
# Warning - The message broadcasted to all online players just before restart/shutdown.
# Confirmation - The message sent to an operator to confirm the restart/shutdown.
# Kick - The message given when a player is kicked.
#
# Placeholders: -
# {STATE} - The states given under state in this section, stopped, restart.
# {SECONDS} - The number of seconds before the server is restart/shutdown
# {COMMAND} - The command the operator has just typed
messages:
permission: '&cYou have insufficient permission to use this command. Only players with a specific permission can use this command!'
warning: 'This server will be {STATE} in {SECONDS} seconds.'
confirmation: '&7Type {COMMAND} again to restart/stop this server!'
kick: '&d&lThis server has been {STATE}, please rejoin!'
state:
stopped: 'shutdown'
restart: 'restarted'
#
# FREQUENCIES
#
# These times are for when we should warn players the server is about to reset, i.e. 60-3 seconds before restart.
frequencies:
- 60
- 30
- 20
- 15
- 10
- 5
- 3
#
# SAVE WORLD
#
# Should we save the world just before the server is shutdown/restarted, if so - give an interval of how many seconds before the task is executed should be save the worlds.
save-world-settings:
save-world: true
interval: 10
#
# AUTO-UPDATER SETTINGS
#
# If you wish to have the plugin auto-update when a new release is created then change the value below to true!
auto-update: true
#
# DEVELOPER DEBUG SETTINGS
#
# If the developer of SRW would like to join, enabling this will allow a debug message to be sent to the developer when he joins.
developer-debug: true
#
# CHANGELOG FOR OWNERS
#
changelog: true
What can I do with this plugin?
You are allowed to do the following:
- Use the plugin for personal use (on your network, server etc).
- Change the CONFIG.YML portion of the plugin.
You are NOT allowed to do the following:
- Release source code.
- Sell/use the plugin commercially.
- Change the PLUGIN.YML portion of the plugin.
- Redistribute the plugin on your own services.
Current Bugs?
- None currently known however, we're actively looking.
Screenshots
Half-time broadcast will round the number. (/srw)
Cancel command message (/srwc)
Custom Time Specified Restart (/srw -o [time in seconds])
Need further support?
Sadly, the only current place that I will provide support is on Discord. You can connect to discord by clicking me.
© xbp 2023 - All rights reserved unless otherwise explicitly stated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧