-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Samuel De Oliveira edited this page Jan 7, 2026
·
1 revision
This guide will help you add DreamAPI to your Minecraft plugin project.
Before installing DreamAPI, ensure you have:
- ☕ Java 21 or higher
- 🎮 Paper 1.21.10 or higher
- 🔨 Maven or Gradle build tool
Add the JitPack repository to your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>Add the dependency to your pom.xml:
<dependency>
<groupId>com.github.Dreamin-MC</groupId>
<artifactId>DreamAPI</artifactId>
<version>0.0.6:all</version>
<scope>provided</scope>
</dependency>Ensure Java 21 is configured:
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>Add to your build.gradle:
repositories {
maven { url 'https://jitpack.io' }
}dependencies {
implementation 'com.github.Dreamin-MC:DreamAPI:0.0.6:all'
}java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}Add to your build.gradle.kts:
repositories {
maven("https://jitpack.io")
}dependencies {
implementation("com.github.Dreamin-MC:DreamAPI:0.0.6:all")
}java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}Create a test class to verify the installation:
import fr.dreamin.dreamapi.api.DreamAPI;
public class TestPlugin extends DreamPlugin {
@Override
public void onDreamEnable() {
getLogger().info("DreamAPI is good");
}
}If it compiles without errors, you're ready to go! 🎉
- 📚 Read the Quick Start Guide
- 🧠 Learn about Basic Concepts
If you get compilation errors:
- Verify Java 21 is installed:
java -version - Ensure your IDE is configured for Java 21
- Run
mvn clean installorgradle clean build
If you get runtime errors:
- Ensure Paper 1.21.10+ is being used
- Check that DreamAPI is in the server plugins folder
- Verify
plugin.ymlhas correct API version
For more help, see Troubleshooting.