SerbanHiro

doublejump plugin with a readm.emd

Kodari AI
KodariOct 11 at 8:35 pm 2,720 (v2)

I’ll create a double jump plugin that allows players to perform a second jump while in mid-air.

DoubleJump
A lightweight plugin that enables players to perform double jumps in mid-air. Features include configurable jump power, cooldown system, particle effects, and sound feedback. Players with permission can double jump by pressing space twice while airborne. Includes customizable settings for jump velocity, cooldown duration, and visual/audio effects.

Created a fully functional double jump plugin with:

Core Features:

  • Double jump by pressing space twice while airborne

  • Configurable jump power and cooldown

  • Particle and sound effects

  • Permission-based access control

Files Created:

  • Main plugin class with lifecycle management

  • Event listener handling flight toggle for double jump

  • Configuration file with customizable settings

  • README.md with full documentation

  • build.gradle for Gradle compilation

The plugin uses the flight toggle mechanic - when a player jumps once, they gain temporary flight ability, and pressing space again triggers the double jump with upward velocity. Cooldowns prevent spam and the system auto-cleans on player logout.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
Code
6 206
src/main/java/com/doublejump/DoubleJump.java
package com.doublejump;

import org.bukkit.plugin.java.JavaPlugin;

public class DoubleJump extends JavaPlugin {
    private DoubleJumpListener listener;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        listener = new DoubleJumpListener(this);
        getServer().getPluginManager().registerEvents(listener, this);
        getLogger().info("DoubleJump plugin enabled!");
    }
    
    @Override
    public void onDisable() {
        if (listener != null) {
            listener.cleanup();
        }
        getLogger().info("DoubleJump plugin disabled!");
    }
}