erikzimmermann / TradeSystem

A highly customizable, free and open-source Minecraft plugin for trading between players.

Home Page:https://www.spigotmc.org/resources/trade-system-custom-layouts.58434/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API

When working with the API of TradeSystem, please note the library relocation as stated below.

Maven

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

<dependency>  
  <groupId>com.github.CodingAir</groupId>
  <artifactId>TradeSystem</artifactId>  
  <version>v2.5.3</version>  
</dependency>

<dependency>
    <groupId>com.github.CodingAir</groupId>
    <artifactId>CodingAPI</artifactId>
    <version>1.79</version>
    <scope>provided</scope>
</dependency>

<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.3</version>
    
        <configuration>
            <relocations>
                <relocation>
                    <pattern>de.codingair.codingapi</pattern>
                    <shadedPattern>de.codingair.tradesystem.lib.codingapi</shadedPattern>
                </relocation>
            </relocations>
        </configuration>
    
        <executions>
            <execution>
                <phase>package</phase>
                <goals>
                    <goal>shade</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>

Gradle

plugins {
    id 'java'
    id 'com.github.johnrengelman.shadow' version "7.1.2"
}

repositories {
    ...
    maven { url 'https://jitpack.io' }
    ...
}

dependencies {
    ...
    compileOnly 'com.github.CodingAir:TradeSystem:2.5.3'
    compileOnly 'com.github.CodingAir:CodingAPI:1.79'
    ...
}

java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}

shadowJar {
    relocate 'de.codingair.codingapi', 'de.codingair.tradesystem.lib.codingapi'
}

About

A highly customizable, free and open-source Minecraft plugin for trading between players.

https://www.spigotmc.org/resources/trade-system-custom-layouts.58434/

License:MIT License


Languages

Language:Java 100.0%