The PrivateChats API is a work-in-progress.
1. Download the latest API release from the repo.
2. Add the API jar as a dependency in your projects.
3. Don't package or shade the API into your plugin jar, it must remain seperate. PrivateChats includes the API.
4. Add PrivateChats as a depend or softdepend in your plugin. For example for Bukkit/Spigot plugin.yml
: softdepend: [PrivateChats]
.
5. The API is now ready to be used in your project.
Add the repository to your pom.xml
<repository>
<id>ryanmood-repo</id>
<url>https://repo.ryanmood.me/releases</url>
</repository>
Add the dependency to your pom.xml, ensuring that <scope>
is always provided
.
<dependency>
<groupId>me.ryanmood</groupId>
<artifactId>PrivateChatsAPI</artifactId>
<version>BETA-0.1</version>
<scope>provided</scope>
</dependency>
Add PrivateChats as a depend or softdepend in your plugin. For example for Bukkit/Spigot plugin.yml
: softdepend: [PrivateChats]
.
The API is now ready to be used.
repositories {
mavenCentral()
maven("https://repo.ryanmood.me/releases/")
}
Add the dependency (compileOnly is required to ensure that the API isn't packaged into your plugin):
dependencies {
implementation("me.ryanmood", "PrivateChatsAPI", "BETA-0.1", "compileOnly")
}
Add PrivateChats as a depend or softdepend in your plugin. For example for Bukkit/Spigot plugin.yml
: softdepend: [PrivateChats]
.
Ensure that PrivateChat's package is excluded from any shading plugins.
The API is now ready to be used.