-
Notifications
You must be signed in to change notification settings - Fork 0
Basic Configuration
This page covers the essential settings. For advanced features like death-cause rules, protection plugins, first-death, and economy, see Advanced Configuration.
After first run, your config is at plugins/DynamicKeepInv/config.yml.
enabled: true
debug: false
check-interval: 100| Setting | Description |
|---|---|
enabled |
Global master switch for the plugin |
debug |
Logs rule decisions to console |
check-interval |
How often to re-check time and update keepInventory gamerules |
Day/night settings are the baseline. Higher-priority rules can override them later.
rules:
day:
keep-items: true
keep-xp: true
night:
keep-items: false
keep-xp: false
bypass-permission: true| Setting | Description |
|---|---|
rules.day.keep-items |
Keep items during daytime |
rules.day.keep-xp |
Keep XP during daytime |
rules.night.keep-items |
Keep items during nighttime |
rules.night.keep-xp |
Keep XP during nighttime |
rules.bypass-permission |
Lets dynamickeepinv.bypass override all other gameplay rules |
Minecraft uses ticks. One full day is 24,000 ticks.
| Time | Ticks | Meaning |
|---|---|---|
| Sunrise | 0 | Day starts |
| Noon | 6000 | Brightest point |
| Sunset | 12000 | Sun starts setting |
| Night | 13000 | Normal night start |
| Midnight | 18000 | Darkest point |
| Dawn | 23000 | Night ending |
time:
day-start: 0
night-start: 13000
triggers:
day: -1
night: -1triggers.day and triggers.night control when the broadcast fires. Set them to -1 to reuse day-start and night-start.
worlds:
enabled:
- world
- world_netherLeave it empty to enable DynamicKeepInv in all worlds:
worlds:
enabled: []Per-world overrides only affect the final day/night item decision:
worlds:
overrides:
world_nether:
day: false
night: false
world_the_end:
day: true
night: trueday and night here override keep-items only. XP still follows the configured day/night XP settings.
Higher-priority rules like bypass, first-death, streak, Lands, GP, WorldGuard, Towny, or death-cause rules can still override these values.
Use broadcasts to inform players when the keep-inventory state changes.
messages:
broadcast:
enabled: true
permission: ""
events:
day-change: true
night-change: true
display:
chat: true
action-bar: false
title: false
sound:
enabled: false
day: "ENTITY_PLAYER_LEVELUP"
night: "ENTITY_WITHER_SPAWN"
death:
enabled: true
chat: true
action-bar: falseIf messages.broadcast.permission is empty, everyone sees the broadcast. If you set a permission node, only players with that permission receive the day/night broadcast.
Example:
messages:
broadcast:
permission: "myserver.keepinv.alerts"Use any valid Bukkit sound name, for example:
ENTITY_PLAYER_LEVELUPBLOCK_NOTE_BLOCK_PLINGENTITY_EXPERIENCE_ORB_PICKUPENTITY_WITHER_SPAWN
Edit plugins/DynamicKeepInv/messages.yml to customise output.
language: enMessages support MiniMessage tags and legacy color codes.