Requirements

The prerequisites:
  • Java 8
  • ProtocolLib / experimental PacketEvents
If you opt for PacketEvents, the dependency is not included by HoloEasy and neither is the instance registration.
More information in the example.

Installation

Learn how to install and integrate HoloEasy in your projects.

Installation via Maven

1. Add the JitPack repository to your build file.

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

2. Add the dependency.

<dependency>
    <groupId>com.github.unldenis.holoeasy</groupId>
    <artifactId>holoeasy-core</artifactId>
    <version>4.2.1</version>
</dependency>

3. For java plugins include also the kotlin stdlib.

<dependency>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-stdlib</artifactId>
    <version>1.9.21</version>
</dependency>

4. Once you’re done, you may now proceed creating your first hologram.

Installation via Gradle

1. Add the JitPack repository to your build file.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

2. Add the dependency.

implementation 'com.github.unldenis.holoeasy:holoeasy-core:4.2.1'

3. For java plugins include also the kotlin stdlib.

implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.9.21'

4. Once you’re done, you may now proceed creating your first hologram.