
SkipNight
SkipNight is a simple and configurable plugin that empowers your community to vote to skip the night, either manually or automatically when the sun goes down.
Список изменений
SkipNight v2.0 Changelog
🆕 New Features
Voting System Enhancements
-
Vote Against System: Players can now vote NO to oppose skipping night
/skipnight yes- Vote in favor/skipnight no- Vote against- Toggle with
allow-vote-againstconfig option
-
Threshold Modes: Two voting threshold options
- Percentage Mode: Require X% of players to vote yes (e.g., 50%)
- Absolute Mode: Require X specific number of yes votes (e.g., 3 players)
- Configure via
threshold-modesetting
-
Instant Skip: When 100% of players vote yes, night skips immediately without waiting for timer
- Toggle with
instant-skip-at-100-percentconfig option
- Toggle with
-
Vote Cancellation: Admins can cancel ongoing votes
/skipnight cancelcommand- Requires
skipnight.cancelpermission
Display & UI Improvements
-
Boss Bar Timer: Visual countdown timer at top of screen
- Shows YES/NO vote counts and time remaining
- Toggle with
display.use-boss-bar
-
Action Bar Updates: Vote progress displayed in action bar (less chat spam)
- Real-time YES/NO vote counts
- Toggle with
display.use-action-bar
-
Enhanced GUI: Vote status GUI now shows
- Green player heads for YES votes
- Red player heads for NO votes
- Gray player heads for abstentions
- Threshold information (percentage or absolute)
-
Clickable Vote Buttons: Separate clickable buttons for YES and NO votes in chat
Sound System
- Configurable Sound Effects for all vote events:
- Vote started
- Player voted yes
- Player voted no
- Vote success
- Vote failed
- Customizable volume and pitch
- Set any sound to
""to disable
Reward System
- Voter Rewards: Reward players for participating in votes
- XP Levels: Give experience levels (set to 0 to disable)
- Items: Custom items with configurable names and lore
- Money: Economy support (requires Vault - optional)
- Choose to reward all voters or only when vote succeeds
- Toggle entire system with
rewards.enabled
🐛 Bug Fixes
- Fixed deprecated
HoverEventconstructor (now uses modern API) - Fixed redundant interface warning (
CommandExecutor→TabExecutor) - Fixed memory leak:
worldIsNightmap now cleaned up on world unload - Fixed cooldown system: Changed from per-player to per-world (prevents abuse)
- Fixed case-sensitive world blacklist comparison (now case-insensitive)
✨ Improvements
- Tab Completion: Added tab completion for all subcommands
- Help Command: New
/skipnight helpcommand with permission-aware display - Config Validation:
required-percentagebounded to 1-100%vote-duration-secondsminimum 5 secondsnight-start-tickandnight-end-tickvalidation
- Display Toggles: Can now independently toggle chat, action bar, and boss bar
- Better Vote Tracking: Separate tracking of yes/no votes for accurate counting
📝 New Commands
/skipnight yes- Vote YES to skip night/skipnight no- Vote NO against skipping/skipnight cancel- Cancel ongoing vote (admin only)/skipnight help- Show help menu
🔐 New Permissions
skipnight.vote.yes- Allow voting yes (default: true)skipnight.vote.no- Allow voting no (default: true)skipnight.cancel- Allow cancelling votes (default: op)
⚙️ Configuration Changes
New Config Sections
display: Control action bar, boss bar, and chat outputsounds: Configure all sound effectsrewards: Set up voter rewards (XP, items, money)
New Vote Settings
threshold-mode- Choose "percentage" or "absolute"required-absolute-count- Number of votes needed in absolute modeallow-vote-against- Enable/disable NO votinginstant-skip-at-100-percent- Skip instantly at unanimous yes
New Message Keys
vote-started-clickable-yes/vote-started-clickable-no- Clickable vote buttonsvoted-yes/voted-no- Vote confirmation messagesvote-cancelled- Admin cancellation messagevote-progress/vote-progress-absolute- Progress for percentage/absolute modeserror-vote-against-disabled- Error when NO voting is disabledreward-received- Reward notificationgui-voter-yes/gui-voter-no/gui-voter-abstain- GUI vote status labels
🔄 Breaking Changes
None - Fully backward compatible with v1.1 configurations
Full Compatibility: v2.0 works with existing v1.1 configs. New features use sensible defaults.
