Create a Minecraft Bukkit/Spigot plugin that disables collision/pushing between players so players can walk through each other instead of colliding with player hitboxes. Inspect this project's generated files and conventions first. Implement a robust solution compatible with the project's configured Minecraft API/version: use a scoreboard team with collision rule NEVER, ensuring all online players are consistently placed in that team on join and startup, and preserve the behavior if players change worlds/rejoin. Avoid altering entity collision with non-player entities. Include appropriate plugin metadata and any minimal configuration only if the project conventions require it. Feature implementation only; do not add tests. Done means the plugin automatically prevents player-player collision without requiring commands or manual setup.

Kodari AI
KodariNov 11 at 1:23 pm 1
NoPlayerCollision
A Bukkit/Spigot plugin that automatically disables player-to-player collision by managing a scoreboard team with the collision rule set to NEVER. On server startup and whenever a player joins or changes worlds, the plugin registers the player into the dedicated team, ensuring they can walk through each other without hitbox interference. Non-player entity collisions remain unaffected, preserving natural interactions with mobs and items. The plugin requires no commands or manual configuration—it operates entirely in the background, maintaining consistent collision-free behavior across world changes and reconnects.
  • Add a minimal Gradle Bukkit plugin project targeting a modern Spigot API.

  • Create a dedicated scoreboard team with collision set to NEVER.

  • Apply membership at startup, join, and world change; no commands or entity-wide collision changes.

Implemented the player-collision plugin. It assigns online players to a dedicated scoreboard team with collision set to NEVER on startup, join, and world change; it adds no commands or configuration. The Gradle project targets Spigot API 1.21.4.

Fix the existing PlayerCollision plugin because the user reports players still collide despite the current main-scoreboard team implementation. Read the current source first. Make player entities non-collidable with other players using the Bukkit API appropriate for the project's Spigot 1.21.4 target, with application to all online players on startup and to every joining player (and re-apply on respawn/world change if needed). Keep the existing scoreboard-team collision rule as a complementary mechanism if appropriate. Do not remove/resize the visual/player hitbox or use NMS; explain internally in code comments only if necessary that this disables entity collision, not the actual hitbox. Preserve non-player entities themselves unchanged. Do not add tests or commands/config. Feature code only; do not build.

Kodari AI
KodariNov 11 at 1:28 pm 1

Updated PlayerCollisionPlugin to call Bukkit’s Player#setCollidable(false) for online players at startup and on join, world change, and respawn (including a next-tick reapply after respawn). The scoreboard team collision rule remains as a complementary mechanism; non-player entities are not modified. Did not build or add tests.

User says their server is Paper 1.21.11. Current project targets compileOnly org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT, Java 21, and plugin.yml api-version '1.13'. Update the existing plugin project to target Paper 1.21.11: use the official Paper Maven repository and Paper API 1.21.11-R0.1-SNAPSHOT as compileOnly, set plugin.yml api-version to the correct supported value for that Paper version, and inspect the current implementation/metadata for any issue that would prevent loading on Paper 1.21.11. Preserve behavior (Player#setCollidable(false), scoreboard NEVER, players only, initialization + join/world change/respawn). Do not invent plugin config folder; no config is needed. Do not add commands/tests and do not build. If you identify a likely load issue beyond the dependency/metadata, fix it in source and report precisely what changed.

Kodari AI
KodariNov 11 at 1:31 pm 1
  • Switch compile-only dependency and repository to Paper’s official Maven repository.

  • Update plugin.yml to declare API version 1.21.11.

  • Keep the current collision behavior; no additional loading issue is apparent in the plugin class or metadata.

Updated the project to compile against Paper 1.21.11-R0.1-SNAPSHOT from Paper’s official Maven repository and set plugin.yml’s api-version to 1.21.11.

The existing implementation retains player-only collision disabling via setCollidable(false), with scoreboard NEVER and startup/join/world-change/respawn handling. I found no other likely loading issue; I did not build or add tests.

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

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;

public final class PlayerCollisionPlugin extends JavaPlugin implements Listener {
    private static final String TEAM_NAME = "kodari_nocollide";

    private Team noCollisionTeam;

    @Override
    public void onEnable() {
        Scoreboard scoreboard = Bukkit.getScoreboardManager().getMainScoreboard();
        noCollisionTeam = scoreboard.getTeam(TEAM_NAME);
        if (noCollisionTeam == null) {
            noCollisionTeam = scoreboard.registerNewTeam(TEAM_NAME);
        }
        noCollisionTeam.setOption(Team.Option.COLLISION_RULE, Team.OptionStatus.NEVER);

        Bukkit.getPluginManager().registerEvents(this, this);
        for (Player player : Bukkit.getOnlinePlayers()) {
            applyNoCollision(player);
        }
    }

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        applyNoCollision(event.getPlayer());
    }

    @EventHandler
    public void onPlayerChangedWorld(PlayerChangedWorldEvent event) {
        applyNoCollision(event.getPlayer());
    }

    @EventHandler
    public void onPlayerRespawn(PlayerRespawnEvent event) {
        Player player = event.getPlayer();
        applyNoCollision(player);
        Bukkit.getScheduler().runTask(this, () -> {
            if (player.isOnline()) {
                applyNoCollision(player);
            }
        });
    }

    private void applyNoCollision(Player player) {
        player.setCollidable(false);
        String entry = player.getName();
        Scoreboard scoreboard = noCollisionTeam.getScoreboard();
        Team currentTeam = scoreboard.getEntryTeam(entry);
        if (currentTeam == noCollisionTeam) {
            return;
        }
        if (currentTeam != null) {
            currentTeam.removeEntry(entry);
        }
        noCollisionTeam.addEntry(entry);
    }
}