thedutchpianoman_

Develop a customizable knockback plugin for PvP on Paper 1.26.1. Include features to adjust knockback strength, direction, and apply different settings per player or group, with an option to disable knockback from explosions by default. Ensure compatibility with existing PvP mechanics and provide an easy-to-use configuration file for server administrators.

Kodari AI
KodariOct 22 at 12:34 pm 1
KnockbackCustomizer
KnockbackCustomizer is a Paper 1.26.1 plugin that gives server administrators granular control over PvP knockback mechanics. It allows adjusting knockback strength and direction globally, per player, or per group, with a default option to disable knockback from explosions. The plugin provides an intuitive YAML configuration file for easy setup, enabling admins to fine-tune combat feel without altering core game mechanics. It supports dynamic per-player overrides, group-based settings via tags or permissions, and seamless integration with existing PvP systems. Features include configurable horizontal and vertical knockback multipliers, directional modifiers, and explosion knockback toggles. The plugin ensures compatibility by hooking into Paper's event system, preserving vanilla behavior when settings are default, and offering real-time reloading without server restarts.

[Generation stopped]

thedutchpianoman_

sorry the version is 26.1.2

Kodari AI
KodariOct 22 at 12:34 pm 1

The generation was stopped before any content could be produced.

thedutchpianoman_

Develop a customizable knockback plugin for PvP on Paper 26.1.2. Include features to adjust knockback strength, direction, and apply different settings per player or group, with an option to disable knockback from explosions by default. Ensure compatibility with existing PvP mechanics and provide an easy-to-use configuration file for server administrators.

Kodari AI
KodariOct 22 at 12:38 pm 1
  1. Set up the Paper 26.1.2 plugin project and administrator-friendly defaults.

  2. Add per-player and permission-group profiles, explosion control, and a reload command.

  3. Apply profile adjustments through Paper’s knockback event to retain compatibility with other PvP plugins.

Created CustomKnockback for Paper 26.1.2. It adjusts player knockback strength and direction while preserving the knockback calculated by Minecraft and other plugins.

Configure default, permission-based groups, and UUID- or name-based players in config.yml. Explosion knockback is disabled by default and can be overridden in profiles. Use /knockback reload to apply config changes; it requires knockback.admin.

thedutchpianoman_

i cant seem to get up with wind charges. can you make it so that people playing mace pvp can use the wind charges and jump higher?

Kodari AI
KodariOct 22 at 2:48 pm 1
  1. Identify how Paper reports wind-charge knockback so it is not mistaken for disabled explosion knockback.

  2. Add a configurable wind-charge lift multiplier to default, group, and player profiles.

  3. Keep other explosion knockback disabled by default and apply the lift only to wind-charge hits.

Wind charges now bypass the default explosion-knockback disable, and their vertical launch is boosted by 1.5×. Other explosion knockback remains disabled.

Adjust wind-charge-vertical-multiplier under default, groups, or players in config.yml, then run /knockback reload.

thedutchpianoman_

wind burst enchantments on weapons don't work. also when i use wind charges i go higher than normal can you make it so that it standard sets the wind charges not too high level and to the normal level as vanilla minecraft?

Kodari AI
KodariOct 22 at 3:52 pm 1
  1. Fix knockback handling so Wind Burst enchantment launches remain intact.

  2. Reset wind-charge lift to vanilla height by default while keeping it configurable.

Wind Burst mace launches now bypass the plugin’s explosion-knockback changes, so the enchantment can work normally. Wind-charge vertical strength defaults to 1.0× (vanilla level).

If you’re upgrading an existing server, change default.wind-charge-vertical-multiplier in its config.yml to 1.0, then run /knockback reload—existing config values are retained.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 365
src/main/java/com/kodari/knockback/CustomKnockbackPlugin.java
package com.kodari.knockback;

import org.bukkit.plugin.java.JavaPlugin;

public final class CustomKnockbackPlugin extends JavaPlugin {
    private KnockbackSettingsManager settingsManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        settingsManager = new KnockbackSettingsManager(this);
        settingsManager.load();

        getServer().getPluginManager().registerEvents(new KnockbackListener(settingsManager), this);
        KnockbackCommand command = new KnockbackCommand(this);
        getCommand("knockback").setExecutor(command);
        getCommand("knockback").setTabCompleter(command);
    }

    public void reloadSettings() {
        reloadConfig();
        settingsManager.load();
    }
}