Create a Minecraft Paper 1.21.11 plugin for a permanent duo SMP system.
Commands:
* /startserver (admin only): randomly assign all online players into teams of 2 and save the teams permanently. * /removeteams (admin only): remove all teams and clear saved data. * /teaminfo: show your teammate and team color.
Requirements:
* Teammates cannot damage each other in any way. * Block all betrayal methods including melee, projectiles, potions, TNT, beds, respawn anchors, end crystals, lava, fire, and indirect damage caused by teammates. * Players cannot leave, switch, or remove themselves from their duo by any command, exploit, INVENTORY GUI, or disconnecting. * Teams stay permanent until an admin uses /removeteams.
Persistence:
* Team data must survive server restarts, crashes, reloads, player disconnects, and reconnects. * If a player rejoins, they are automatically placed back into their original duo.
Locator Bar:
* Players should only see their teammate on the locator bar/compass tracking system. * No other players should appear there. * The teammate should remain trackable across dimensions if technically possible.
Team Colors:
* Every duo gets its own unique color. * Both teammates share the same color. * Apply the color in chat, tab list, nametags, and above player heads using scoreboard teams or similar methods.
Additional requirements:
* Handle odd player counts gracefully. * Support players joining after teams are already created. * Use modern Paper APIs. * Store data in YAML or JSON. * Keep the code modular and optimized. * Include full source code and plugin.yml. * Target Paper 1.21.11 and maintain compatibility with future 1.21.x versions where possible.
KodariJul 8 at 8:04 pm 35
I’ll build a permanent Duo SMP plugin with team management, damage protection, scoreboard colors, and cross-dimension teammate tracking via custom compass/actionbar (since vanilla locator bar can’t be filtered per-viewer, I disable it globally and replace it with a custom teammate-only tracker).
DuoSMP
A permanent duo SMP plugin. Admins run /startserver to randomly pair all online players into permanent 2-player teams saved to disk, surviving restarts and reconnects. Teammates cannot damage each other via melee, projectiles, potions, TNT, beds, anchors, crystals, lava, or fire. Each duo gets a unique color applied to chat, tab list, and nametags via scoreboard teams. A custom compass/action-bar tracker shows only your teammate's location, working across dimensions. Handles odd player counts and players joining after teams are created. /removeteams wipes all data. Teams are permanent and cannot be left by any command, GUI, or exploit.
Permanent duo SMP plugin for Paper 1.21.x. Admins run /startserver to randomly pair all online players into permanent duo teams saved to YAML; /removeteams wipes all data. Teammates cannot damage each other via melee, projectiles, potions, TNT, beds, anchors, crystals, lava, or fire, and cannot leave their duo by any means. Teams persist through restarts and reconnects, auto-restoring players to their original duo. Each duo gets a unique scoreboard color shown in chat, tab list, and nametags. A custom cross-dimension compass/action-bar tracker shows only your teammate's location, replacing the vanilla locator bar. Handles odd player counts and players joining after teams are created.
A permanent duo-team SMP plugin. Admins run /startserver to randomly pair all online players into permanent 2-player teams (odd players get paired later via auto-fill on join). Teammates cannot damage each other via melee, projectiles, potions, TNT, beds, respawn anchors, lava, or fire. Teams get a unique scoreboard color shown in chat, tab list, and nametags. A custom teammate-only tracker replaces the locator bar so only your teammate is visible, even across dimensions. Data persists in YAML across restarts and reconnects. /removeteams (admin) wipes all data; /teaminfo shows your teammate and color.
A Paper 1.21 plugin implementing permanent duo teams for SMP servers. Admins run /startserver to randomly pair online players into permanent duos with unique scoreboard colors applied to chat, tab, and nametags. Teammates are fully immune to friendly-fire from melee, projectiles, potions, TNT, beds, respawn anchors, end crystals, lava, and fire. A custom teammate-only tracker replaces the vanilla locator bar, showing direction/distance to your partner even across dimensions. Team data persists in YAML across restarts, crashes, and reconnects, with players auto-restored to their duo on rejoin and new joiners auto-paired into open slots. /removeteams wipes all data. No exploit, command, or disconnect can break a duo.
I built the DuoSMP plugin with modular team management, permanent duo persistence (YAML), full friendly-fire blocking (melee, projectiles, potions, TNT, explosions, lava, fire), scoreboard-based team coloring for chat/tab/nametags, and a custom teammate-only tracker (vanilla locator bar disabled via WAYPOINT_TRANSMIT_RANGE, replaced with compass + action-bar direction/distance that also handles cross-dimension teammates). /startserver, /removeteams, and /teaminfo are all wired up, odd player counts create a solo slot that auto-fills when a new player joins, and rejoining players are always restored to their original duo.
Kodari can make mistakes. Review important code before using.