SVSchedule
SVSchedule 是一款适用于 Paper/Spigot 服务器的轻量级调度插件,允许根据自定义计划自动执行命令。非常适合用于每日活动、抽奖、重复奖励、自动公告以及特定时间范围内的随机事件。
该插件设计为防止服务器重载和重启导致的问题,因为所有生成的计划都存储在数据文件中,并在服务器再次启动时自动恢复。
✨ 功能特性
- ? 在特定时间调度事件
- ? 在可配置的时间范围内生成随机事件
- ? 支持每日事件次数限制(
limit)
- ? 支持每个事件独立设置时区
- ⏳ 命令之间的延迟执行
- ? 支持 HEX 颜色代码和 Minecraft 颜色代码
- ? 防止因
/reload 和服务器重启导致的数据丢失
- ? 自动将计划存储于
schedule.yml 中
- ⚡ 轻量级且对性能友好
- ?️ 支持启用/禁用单个事件
? 使用示例
随机事件
每天在 21:00–23:00 之间随机生成 3 个不同的时间点。
schedule:
moonevent:
enabled: true
timezone: "Asia/Jakarta"
time-range: "21:00 - 23:00"
limit: 3
actions:
- command: "say Moon Event started!"
生成的计划示例:
21:17
22:05
22:43
每天都会生成不同的时间点。
固定时间事件
每天在 00:00 准时执行命令。
schedule:
midnight:
enabled: true
timezone: "Asia/Jakarta"
time-range: "00:00"
actions:
- command: "say Happy Midnight!"
命令间的延迟
actions:
- command: "say Event started!"
- delay: "5s"
command: "give @a diamond 1"
- delay: "10s"
command: "say Event finished!"
延迟格式说明:
⚙️ 配置示例
# 启用或禁用整个调度系统
enabled: true
schedule:
moonevent:
enabled: true # 新功能:启用/禁用此特定事件
timezone: "Asia/Jakarta"
time-range: "19:00 - 22:00" # 使用随机调度系统
limit: 3 # 命令将在 19:00 到 22:00 之间执行 3 次
actions:
- command: "eco give %player% 1000"
delay: "0s"
- command: "broadcast &#ff3366[SV] MoonEvent Phase 2 Started!" # 新功能:支持 HEX 及颜色代码
delay: "30s"
- command: "mobs spawn moonevent_boss"
delay: "1m"
anotherevent:
enabled: true # 新功能:独立于其他事件运行
timezone: "Asia/Jakarta"
time-range: "13:00" # 新功能:支持固定时间调度
actions:
- command: "broadcast �ffcc[SV] This message appears exactly at 13:00 WIB!"
delay: "0s"
# 亚洲
# Asia/Jakarta
# Asia/Makassar
# Asia/Jayapura
# Asia/Singapore
# Asia/Bangkok
# Asia/Ho_Chi_Minh
# Asia/Manila
# Asia/Kuala_Lumpur
# Asia/Hong_Kong
# Asia/Taipei
# Asia/Shanghai
# Asia/Seoul
# Asia/Tokyo
# Asia/Dubai
# Asia/Kolkata
# 欧洲
# Europe/London
# Europe/Dublin
# Europe/Paris
# Europe/Berlin
# Europe/Madrid
# Europe/Rome
# Europe/Amsterdam
# Europe/Warsaw
# Europe/Athens
# Europe/Moscow
# 北美洲
# America/New_York
# America/Detroit
# America/Chicago
# America/Denver
# America/Phoenix
# America/Los_Angeles
# America/Toronto
# America/Vancouver
# America/Mexico_City
# 南美洲
# America/Sao_Paulo
# America/Argentina/Buenos_Aires
# America/Santiago
# America/Bogota
# America/Lima
# America/Caracas
# 大洋洲
# Australia/Sydney
# Australia/Melbourne
# Australia/Brisbane
# Australia/Perth
# Pacific/Auckland
# Pacific/Fiji
# 非洲
# Africa/Cairo
# Africa/Johannesburg
# Africa/Lagos
# Africa/Nairobi
# Africa/Casablanca
# UTC
# UTC
# Etc/UTC
# GMT
? 命令
| 命令 |
权限 |
/svschedule reload |
svschedule.admin |
?️ 权限
svschedule.admin
允许玩家重载插件配置。
? 适用场景
- 每日活动
- 自动奖励
- 月亮活动 (Moon Events)
- 服务器抽奖
- 自动广播
- 定时重启
- 宝箱活动
- Boss 活动
- 采矿活动
- 季节性活动
? 优势
与传统调度插件不同,SVSchedule 将生成的计划存储在文件中,这意味着:
- 重载后无需重新生成计划。
- 防止事件重复执行。
- 服务器重启后继续执行剩余的计划。
- 对经济系统和基于奖励的活动更加安全。
SVSchedule 专为需要稳定、轻量且可靠的自动化事件调度系统的服务器而构建。?
SVSchedule
SVSchedule is a lightweight scheduler plugin for Paper/Spigot servers that allows commands to be executed automatically based on custom schedules. Perfect for daily events, giveaways, recurring rewards, automated announcements, and random events within specific time ranges.
The plugin is designed to be safe against server reloads and restarts, as all generated schedules are stored in a data file and automatically restored when the server starts again.
✨ Features
- ? Schedule events at specific times
- ? Random events within a configurable time range
- ? Daily event limit support (
limit)
- ? Per-event timezone support
- ⏳ Delay between commands
- ? HEX color and Minecraft color code support
- ? Safe against
/reload and server restarts
- ? Automatic schedule storage in
schedule.yml
- ⚡ Lightweight and performance-friendly
- ?️ Enable/disable individual events
? Usage Examples
Random Event
Randomly generates 3 different times between 21:00–23:00 every day.
schedule:
moonevent:
enabled: true
timezone: "Asia/Jakarta"
time-range: "21:00 - 23:00"
limit: 3
actions:
- command: "say Moon Event started!"
Example generated schedule:
21:17
22:05
22:43
Different times will be generated every day.
Fixed-Time Event
Executes commands every day exactly at 00:00.
schedule:
midnight:
enabled: true
timezone: "Asia/Jakarta"
time-range: "00:00"
actions:
- command: "say Happy Midnight!"
Delay Between Commands
actions:
- command: "say Event started!"
- delay: "5s"
command: "give @a diamond 1"
- delay: "10s"
command: "say Event finished!"
Delay formats:
| Format |
Description |
5s |
5 seconds |
1m |
1 minute |
⚙️ Example Configuration
# Enable or disable the entire scheduling system
enabled: true
schedule:
moonevent:
enabled: true # NEW FEATURE: Enable/disable this specific event
timezone: "Asia/Jakarta"
time-range: "19:00 - 22:00" # Uses the random scheduling system
limit: 3 # Commands will be executed 3 times between 19:00 and 22:00
actions:
- command: "eco give %player% 1000"
delay: "0s"
- command: "broadcast &#ff3366[SV] MoonEvent Phase 2 Started!" # NEW FEATURE: HEX & Color Code Support
delay: "30s"
- command: "mobs spawn moonevent_boss"
delay: "1m"
anotherevent:
enabled: true # NEW FEATURE: Runs independently from other events
timezone: "Asia/Jakarta"
time-range: "13:00" # NEW FEATURE: Supports fixed-time schedules
actions:
- command: "broadcast �ffcc[SV] This message appears exactly at 13:00 WIB!"
delay: "0s"
# Asia
# Asia/Jakarta
# Asia/Makassar
# Asia/Jayapura
# Asia/Singapore
# Asia/Bangkok
# Asia/Ho_Chi_Minh
# Asia/Manila
# Asia/Kuala_Lumpur
# Asia/Hong_Kong
# Asia/Taipei
# Asia/Shanghai
# Asia/Seoul
# Asia/Tokyo
# Asia/Dubai
# Asia/Kolkata
# Europe
# Europe/London
# Europe/Dublin
# Europe/Paris
# Europe/Berlin
# Europe/Madrid
# Europe/Rome
# Europe/Amsterdam
# Europe/Warsaw
# Europe/Athens
# Europe/Moscow
# North America
# America/New_York
# America/Detroit
# America/Chicago
# America/Denver
# America/Phoenix
# America/Los_Angeles
# America/Toronto
# America/Vancouver
# America/Mexico_City
# South America
# America/Sao_Paulo
# America/Argentina/Buenos_Aires
# America/Santiago
# America/Bogota
# America/Lima
# America/Caracas
# Oceania
# Australia/Sydney
# Australia/Melbourne
# Australia/Brisbane
# Australia/Perth
# Pacific/Auckland
# Pacific/Fiji
# Africa
# Africa/Cairo
# Africa/Johannesburg
# Africa/Lagos
# Africa/Nairobi
# Africa/Casablanca
# UTC
# UTC
# Etc/UTC
# GMT
? Commands
| Command |
Permission |
/svschedule reload |
svschedule.admin |
?️ Permissions
svschedule.admin
Allows players to reload the plugin configuration.
? Perfect For
- Daily events
- Automatic rewards
- Moon Events
- Server giveaways
- Auto broadcasts
- Scheduled restarts
- Crate events
- Boss events
- Mining events
- Seasonal events
? Advantages
Unlike traditional scheduler plugins, SVSchedule stores generated schedules in a file, which means:
- No schedule regeneration after reloads.
- Prevents events from running twice.
- Continues remaining schedules after server restarts.
- Safe for economy systems and reward-based events.
SVSchedule is built for servers that need a stable, lightweight, and reliable automated event scheduling system. ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧