hude67ontop

FoliaInstantRespawn

A lightweight plugin that removes the Minecraft respawn screen and instantly brings players back to life after death. Designed with full compatibility for Folia, it ensures smooth performance even on modern region-threaded servers.

Features

⚡ Instant Respawn – Players respawn immediately after dying with no respawn screen.

🧹 Removes Respawn Screen – Eliminates the death menu for faster gameplay.

🧵 Full Folia Support – Built to work properly with Folia’s region-based threading model.

🪶 Lightweight – Minimal overhead and simple functionality.

🔧 Plug-and-Play – No configuration required.

Kodari AI
KodariMar 9 at 1:55 pm 6,414 (v2)

I’ll create a lightweight instant respawn plugin with full Folia support using FoliaLib.

FoliaInstantRespawn
A lightweight plugin that removes the Minecraft respawn screen and instantly brings players back to life after death. Designed with full compatibility for Folia, it ensures smooth performance even on modern region-threaded servers. Features instant respawn with no death menu, built using FoliaLib for seamless threading model support. Plug-and-play with no configuration required.

Now I’ll create the instant respawn plugin with FoliaLib integration.

Plugin created successfully! FoliaInstantRespawn instantly respawns players on death using FoliaLib for full Folia compatibility, detecting the server type at runtime and scheduling respawns on the correct entity thread.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
5 91
src/main/java/com/foliainstantrespawn/FoliaInstantRespawn.java
package com.foliainstantrespawn;

import com.foliainstantrespawn.listener.DeathListener;
import com.tcoded.folialib.FoliaLib;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FoliaInstantRespawn extends JavaPlugin {
    
    private FoliaLib foliaLib;
    
    @Override
    public void onEnable() {
        foliaLib = new FoliaLib(this);
        
        getServer().getPluginManager().registerEvents(new DeathListener(foliaLib), this);
        
        getLogger().info("FoliaInstantRespawn has been enabled!");
        getLogger().info("Running on " + (foliaLib.isFolia() ? "Folia" : "Spigot/Paper"));
    }
    
    @Override
    public void onDisable() {
        if (foliaLib != null) {
            foliaLib.getScheduler().cancelAllTasks();
        }
        
        getLogger().info("FoliaInstantRespawn has been disabled!");
    }
}