π€οΈ DayNightCicle
DayNightCicle is a lightweight Paper plugin that lets you extend day and night length in minutes via YAML and live commands with integrated AFK system.
Paper 1.21+ • Java 21
β¨ Features
- βοΈπ Set custom day and night duration in minutes.
- π Apply to all overworlds or specific worlds.
- βοΈ In-game commands to reload, check status, set values, and manage sleep overrides.
- π΄ Sleep override list to count selected players even if other plugins ignore them.
- π¬ Built-in language files (it_it, us_en).
- π§ Integrated AFK system with configurable behaviors and sleep counting.
- π‘οΈ Smart movement detection (ignores mob pushing, phantom attacks).
- π·οΈ Customizable AFK display with prefix/suffix options.
π Languages
- Set
lang in config.yml to it_it or us_en.
en_us is accepted and mapped to us_en.
π Commands
/daynightcicle or /dnc - show help.
/daynightcicle reload - reload config.
/daynightcicle status - show current settings and AFK players.
/daynightcicle set day <min> night <min> - update and save.
/daynightcicle nosleeplist - show sleep override list.
/daynightcicle sleeplist add <player> - add a player to the sleep override list.
/daynightcicle sleeplist remove <player> - remove a player from the sleep override list.
/afk - toggle AFK status manually.
βοΈ Config
lang: it_it
cycle:
day_minutes: 20
night_minutes: 10
min_minutes: 10
sleep_skip_delay_seconds: 5
afk_timeout_minutes: 5
afk:
remove_on_move: true
remove_on_chat: true
remove_on_interact: true
invulnerable: false
can_be_moved: true
ignored_by_mobs: false
counts_for_sleep: true
can_pickup_items: false
frozen: false
display_text: "AFK"
use_prefix: false
worlds: []
π΄ Sleep Override List
The plugin creates sleep-override.json in the plugin data folder. Players in this list will be counted even if another plugin marks them as sleep-ignored.
{
"players": [
"KillerItaly"
]
}
Player names are case-insensitive. If you edit the file manually, run /daynightcicle reload afterward.
π§ AFK System
The plugin includes a comprehensive AFK system that integrates with the sleep mechanics:
- Smart Detection: Distinguishes between player movement and mob pushing
- Configurable Triggers: Movement, chat, interaction detection
- Sleep Integration: AFK players can count as "sleeping" for night skip
- Display Options: Customizable prefix/suffix in tab list
- Protection Features: Invulnerability, mob targeting, item pickup control
π Install
- Drop the jar into
plugins/.
- Start the server to generate
plugins/DayNightCicle/config.yml.
- Edit the config and run
/daynightcicle reload.
π Links

Portfolio
--------------------------------------

LinkedIn
--------------------------------------

Email
--------------------------------------

Buy me a beer
--------------------------------------

Ko-fi