
⚠ **Warning**: The configuration file from version 1.x is not compatible with 2.0! You must delete the old config file before updating.
# Enhancements
- Refactored the Developer API.
- Overhauled the configuration file structure for better readability and future maintainability.
- Reworked all messages to use the Multification system (similar to EternalCore plugin). Refer to our [documentation](https://docs.eternalcode.pl/eternalcore/notifications) for details.
- Enhanced the spawn protection (during combat) feature:
- Added wall-based protection to reinforce boundaries.
- Introduced visually appealing particles to highlight the border.
- Improved the knockback system for smoother and more reliable behavior.
- Added an option to exclude players in Creative mode from combat tagging.
- Implemented numerous internal optimizations and improvements.
- Updated all dependencies to their latest versions.
- Refined the layout of the plugin description for a cleaner presentation.
# Fixes
- Resolved an issue where flight was incorrectly disabled after a combat time while in Creative or Spectator mode.
- Addressed various minor bugs and inconsistencies.
## 👨🏭 Developer API
To use EternalCombat API, you first need to add EternalCode to your project. To do that follow these steps:
You can check the latest release number [here](https://github.com/EternalCodeTeam/EternalCombat/releases/latest).
1. Add repository:
For Gradle projects use:
```kts
maven("https://repo.eternalcode.pl/releases")
```
For Maven projects use:
```xml
<repository>
<id>eternalcode-reposilite-releases</id>
<url>https://repo.eternalcode.pl/releases</url>
</repository>
```
2. Add dependency:
For Gradle projects use:
```kts
compileOnly("com.eternalcode:eternalcombat-api:2.0.0")
```
For Maven projects use:
```xml
<dependency>
<groupId>com.eternalcode</groupId>
<artifactId>eternalcombat-api</artifactId>
<version>2.0.0</version>
<scope>provided</scope>
</dependency>
```
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" }