- Introduced a new `teleportToLobby` method in the `Duels` interface to teleport players to the lobby.
- Implemented the method in `DuelsPlugin` with thorough null checks.
- Introduced `hasUsableTotem` method to verify if a player has a totem equipped in their main or off hand.
- Updated round-ending logic to account for potential totem protection against lethal damage.
- Updated `CommandsConfig` to handle unset or empty alias configurations correctly.
- Added `unregisterPluginCommands` in `DuelsPlugin` to clean up stale command entries during plugin unload.
- Introduced `average_rating` and `avg_rating` placeholders in `PlaceholderHook`.
- Implemented `averageRating` method to calculate the average rating across all kits.
- Prevent cursor-held items from being included in death drops during duels
- Added checks in `Teleport` to handle players sleeping or inside vehicles.
- Adjusted `DuelManager` to use `setHealth(0)` for ending matches instead of manually restoring player state, avoiding corruption risks.
- Introduced duel cooldown configuration in `config.yml`.
- Added `SelfCooldownValidator` and `TargetCooldownValidator` to validate duel cooldowns.
- Updated `User` and `UserData` to handle cooldown timestamps and implement cooldown logic.
- Integrated cooldown checks and enforcement in `DuelManager`, `RequestManager`, and related classes.
- Updated `lang.yml` with new message for players in cooldown.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }