# Enchantments
- Added home admin feature
- Added afk more afk placeholders:
- `%eternalcore_afk_formatted%` - Returns the text specified in the configuration while the player is afk, and when the player is not afk, this can be configured:
```yaml
# Placeholder used in %eternalcore_afk_formatted% to indicate AFK status
afkEnabledPlaceholder: "<red><b>AFK"
afkDisabledPlaceholder: ""
```
- `%eternalcore_afk_time%` - Returns the time how long the player is while afk
- Improved teleport do default home.
- Removed the ability of the `/give` command to give items with enchantments. Please use `minecraft:/give' with json format to give enchanted items.
# Fixes
- Fixed illegal stack by `/give` command on the new version `(1.20.6 - 1.21.3)`
## Developer API
To use EternalCore API, you first need to add EternalCode to your project. To do that follow these steps:
You can check the latest release number [here](github.com/EternalCodeTeam/EternalCore/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:eternalcore-api:1.4.0")
```
For Maven projects use:
```xml
<dependency>
<groupId>com.eternalcode</groupId>
<artifactId>eternalcore-api</artifactId>
<version>1.4.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" }