Overview
When enabled, players in Adventure or Survival mode can double-jump by pressing the jump key twice. The second jump launches them forward and upward with configurable power values.Configuration
config.yml
Configuration Options
enabled
enabled
Enable or disable the double jump feature.Type: Boolean
Default:
Default:
truepower
power
The horizontal power of the double jump.Type: Number
Default:
Note: Higher values = stronger forward momentum
Default:
1.5Note: Higher values = stronger forward momentum
power_y
power_y
The vertical (upward) power of the double jump.Type: Number
Default:
Note: Controls how high the second jump launches the player
Default:
0.5Note: Controls how high the second jump launches the player
cooldown
cooldown
Cooldown in seconds between double jumps.Type: Integer
Default:
Important: Must be an integer value (no decimals)
Default:
2Important: Must be an integer value (no decimals)
How It Works
System checks conditions
The plugin verifies the player is in Adventure/Survival mode, has the movement key in their data, cooldown has expired, and double jump is enabled.
Technical Implementation
The double jump feature leverages Minecraft’s flight toggle event to detect the mid-air jump attempt:DoubleJumpListener.java
Flight Permission System
Double jump uses the flight allowance system creatively. When players join or change gamemode, they’re granted flight permission:DoubleJumpListener.java
The flight permission is only used to detect the double-tap jump input. Players won’t actually fly - they’ll just get the boost from the double jump.
Player Movement Modes
Double jump integrates with Hubbly’s player movement system. Players must have movement data stored in their PersistentDataContainer for double jump to work. This is automatically managed when:- Players join the server
- Players change their movement mode through the movement menu
- Database integration is enabled
Best Practices
Balance power values
Test different power and power_y combinations to find the right feel for your hub. Start with defaults and adjust based on player feedback.
Set appropriate cooldown
A 2-second cooldown prevents spam while keeping movement fluid. Adjust based on your hub’s size and layout.
Test with your hub layout
Ensure double jump doesn’t allow access to restricted areas or break parkour challenges.
Permissions
Double jump functionality is tied to the player’s movement mode and data, not a specific permission. However, players need to be in Adventure or Survival gamemode for it to work.Disabled Worlds
Double jump respects the disabled worlds configuration:config.yml
Advanced Configuration
High-Power Double Jump
For larger hubs where players need to cover more distance:Subtle Double Jump
For a more subtle movement enhancement:Vertical-Focused Double Jump
For parkour or vertical navigation:Troubleshooting
Double jump not working
Double jump not working
Common causes:
- Player is in Creative or Spectator mode
- Player doesn’t have movement data in PersistentDataContainer
double_jump.enabledis set tofalse- Player is in a disabled world
- Cooldown hasn’t expired yet
Players actually flying
Players actually flying
This shouldn’t happen. Check:
- Ensure players are not in Creative mode
- Verify no other plugins are granting flight
- Check that PlayerMovementHandler is properly canceling the flight event
Double jump too weak/strong
Double jump too weak/strong
Adjust the values:
- Increase
powerfor more horizontal distance - Increase
power_yfor more height - Test in small increments (0.2-0.5 adjustments)
Cooldown message spam
Cooldown message spam
If players are getting spammed with cooldown messages:
- Increase the cooldown duration
- Check that cooldown messages are properly suppressed
- Verify CooldownManager is functioning correctly
Related Features
- Movement Items - Additional movement mechanics
- Launchpads - Block-based launch mechanics
- Main Configuration - Configure player flight and other settings