Skip to content
Alexander Chapchuk edited this page Dec 14, 2022 · 1 revision

At this page there will be a speech about intergate CustomItems into your plugin.

Plugin side

Dependency

Add dependecy into your project, CustomItems storage at CodeMC nexus, for using that you need:

Gradle

repositories {
    maven {
        name = 'CodeMC'
        url = 'https://repo.codemc.org/repository/maven-public/'
    }
}

dependencies {
    compileOnly 'org.zendal.customitems:CustomItems:${version}'
}

Maven

<dependency>
  <groupId>org.zendal.customitems</groupId>
  <artifactId>CustomItems</artifactId>
  <version>${version}</version>
</dependency>

Replace version placeholders with actual release, you can be found that at Release page

Plugin integration (Bukkit)

First at you need update your plugin dependency at plugin.yaml

name: Example
version: 1.0
main: com.example.Example
api-version: 1.18
depend:
  - CustomItems # Here

After that you can using CustomItemsApi in your Classes via simple snippet:

@Override
public void onEnable() {
    final var api = CustomItems.getApi();
    //Using...
}

Server side

Download plugin from Release page or Spigot and put plugin into your plugins folder server.

Clone this wiki locally