Jonathan Teglas

Can you make a .jar plugin that fixes the paper patch for despawning fishing hook bobbers for 26.3

Kodari AI
KodariOct 25 at 5:57 pm 1
BobberFix
Fixes the Paper patch issue where fishing hook bobbers despawn prematurely on Minecraft 26.3. The plugin intercepts fishing hook entity lifecycle events, prevents unintended despawn triggers, and maintains proper bobber persistence until the fishing action completes. It hooks into entity tick and despawn logic, overriding the problematic Paper patch behavior. The plugin ensures bobbers remain active while cast, properly despawn on catch or reel-in, and syncs correctly with client-side rendering. Lightweight and server-side only, it requires no configuration and works transparently with existing fishing mechanics.
  • Create a Paper 26.3 plugin project.

  • Mark each newly cast fishing bobber persistent so it won’t despawn from player distance.

  • Add the plugin metadata and Java 25 build configuration.

Created the Paper 26.3 plugin. It marks each newly cast fishing bobber as persistent, preventing despawning due to player distance.

To get the jar: click Compile in the top bar (on phone: ⋮ → Compile Project), click Compile in the window, then Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
4 50
src/main/java/com/kodari/bobberfix/BobberPersistenceFix.java
package com.kodari.bobberfix;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerFishEvent;
import org.bukkit.plugin.java.JavaPlugin;

public final class BobberPersistenceFix extends JavaPlugin implements Listener {
    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(this, this);
    }

    @EventHandler
    public void onPlayerFish(PlayerFishEvent event) {
        if (event.getState() == PlayerFishEvent.State.FISHING) {
            event.getHook().setPersistent(true);
        }
    }
}