
TimerCommand
A comprehensive command scheduler for Spigot/Paper servers
Список изменений
✅ Added $delay$ placeholder feature for delayed command execution across all command types (TIME, INTERVAL, WEEKLY, MONTHLY_DAY, GAME_TIME).
✅ Implemented cumulative delay system where multiple $delay$ commands execute sequentially with customizable delay intervals.
✅ Commands without $delay$ before delayed commands execute immediately, while those after delayed commands execute after all delays complete.
✅ Added comprehensive delay support with delay value specified in seconds via the delay configuration field.
✅ Delay feature works seamlessly with all existing placeholder replacements (%day%, %month%, %year%, %hour%, %minute%, PlaceholderAPI, etc.).
✅ Enhanced configuration flexibility with delay parameter available for all command types without any restrictions.
✅ Added detailed logging for delayed command scheduling and execution with timing information.
Example Configuration
Here's a practical example of using the new delay feature for a server restart countdown:
restart-countdown:
enabled: true # Set to true to enable
type: "TIME"
commands:
- "say Restart in 10 seconds"
- "$delay$ say Restart in 9 seconds"
- "$delay$ say Restart in 8 seconds"
- "$delay$ say Restart in 7 seconds"
- "$delay$ say Restart in 6 seconds"
- "$delay$ say Restart in 5 seconds"
- "$delay$ say Restart in 4 seconds"
- "$delay$ say Restart in 3 seconds"
- "$delay$ say Restart in 2 seconds"
- "$delay$ say Restart in 1 second"
- "$delay$ say Restarting server now!"
- "$delay$ restart" # Restart command will execute after all delays
time: "23:59" # Execute at 23:59 every day
delay: "1" # 1 second delay between each command
