# Time interval for KeyAll events (in seconds)
timeInterval: 60
# Random timer (Overrides timeInterval if enabled)
random-timer:
enabled: false
min-time: 60 # Minimum time in seconds
max-time: 120 # Maximum time in seconds
# Commands executed during the KeyAll event
# %player% is the Placeholder for player
commands:
- "command to execute"
# Title message settings
enable-title-message: true
title-message: "&aCongratulations!"
subtitle-message: "&eYou received a reward!"
title-fade-in: 2 # Fade-in duration (in ticks)
title-stay: 4 # Duration to display title (in ticks)
title-fade-out: 2 # Fade-out duration (in ticks)
# Hotbar message
enable-hotbar-message: true
hotbar-message: "&aYou received a reward!"
# Chat messages sent to players
message:
- "&aYou earned a KeyAll reward!"
- "&6Thanks for participating!"
# Sound effect during the KeyAll event
enable-sound-effects: true
sound: ENTITY_EXPERIENCE_ORB_PICKUP # Must be a valid Minecraft sound
volume: 0.5
pitch: 2.0
Placeholders
Utilize PlaceholderAPI to display the countdown timer:
%keyallx_timer%: Displays the remaining time until the next key distribution.
%keyallx_days%: Remaining days until the next key.
%keyallx_hours%: Remaining hours until the next key.
%keyallx_mins%: Remaining minutes until the next key.
%keyallx_secs%: Remaining seconds until the next key.
Commands
/keyallx reload: Reloads the plugin configuration.
/reset-timer: Manually starts or stops the timer for key distribution, giving administrators full control over the plugin's behavior.
Usage
Once installed, the plugin will automatically distribute keys at specified intervals. Players can use PlaceholderAPI to view the countdown timer.
Permissions
OP: Allows players to use the /keyall reload command.
Issues
Encountering issues or have suggestions? Create an issue on the GitHub page!