CosDuels icon

CosDuels -----

Duels is a powerful and optimized 1v1 PvP duel system designed for competitive Minecraft servers.



Bug Fixes in the Latest Update
1. Fix for the "Void Effect" When Joining

Problem: Spectators were falling into the void or spawning in awkward positions when starting to spectate.

  • Geographical Center Calculation: The plugin no longer teleports you to a fixed spawn point. It now automatically calculates the exact midpoint between Corner 1 and Corner 2 of the arena.
  • Safety Elevation: 2 blocks of height (+2.0 on Y) have been added to the spawn point so the spectator gets an immediate aerial view and doesn’t spawn “buried” in the ground.
  • Instant Mode Switch: The logic order was modified. The player is now switched to SPECTATOR mode before teleporting. This disables Minecraft’s gravity engine at the exact moment of the zone change, eliminating the “falling” sensation.
2. Movement Lock Fix on Exit
Problem:
When dying or using /duel leave, players appeared in the lobby but couldn’t move (“movement glitch”).

  • Record Cleanup: It was detected that the player was removed from the spectators list but remained in the internal players list. The plugin still thought you were in combat and kept cancelling your movement.
  • Synchronization: Now, when leaving, the player’s data is removed from both lists simultaneously, releasing control from the ArenaListener and allowing normal movement in the lobby.
3. Command Security System
Problem:
Spectators could use commands to teleport away or exploit.

  • Whitelist: A filter was implemented that intercepts all commands. If a player is a spectator, they can only execute /duel leave. Any other command will be canceled with a warning message.
  • Admin Bypass: An exception was added so administrators (with the permission duels.admin) can still use commands while monitoring matches.
4. Protected Statistics Flow
Problem:
There were concerns that the changes might affect win/kill tracking.

  • Validation: It was confirmed that the system saves Kills and Wins at the exact moment of the final hit. The exit system changes occur after the stats.yml file has already been updated, so your statistics are 100% safe.
----------, Apr 3, 2026
Resource Information
Author:
----------
Total Downloads: 113
First Release: Feb 25, 2026
Last Update: Apr 28, 2026
Category: ---------------
All-Time Rating:
0 ratings
Find more info at discord.gg...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings