-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
Alexander Chapchuk edited this page Dec 14, 2022
·
1 revision
At this page there will be a speech about intergate CustomItems into your plugin.
Add dependecy into your project, CustomItems storage at CodeMC nexus, for using that you need:
repositories {
maven {
name = 'CodeMC'
url = 'https://repo.codemc.org/repository/maven-public/'
}
}
dependencies {
compileOnly 'org.zendal.customitems:CustomItems:${version}'
}<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
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 # HereAfter that you can using CustomItemsApi in your Classes via simple snippet:
@Override
public void onEnable() {
final var api = CustomItems.getApi();
//Using...
}Download plugin from Release page or Spigot and put plugin into your plugins folder server.