-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Jiří Apjár edited this page Aug 4, 2022
·
3 revisions
ForestRedisAPI allows you to easily communicate between servers using Redis. Library also allows you to send your custom objects using built-in Gson. Receiving data is handled by custom Spigot/Bungee Events, so you can easily implement the features using standard Listeners.
Make sure the server has ForestRedisAPI plugin installed. Otherwise, look at Standalone Usage.
First, you need to setup the dependency on the ForestRedisAPI. Replace VERSION with the version of the release.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.ForestTechMC</groupId>
<artifactId>ForestRedisAPI</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
</dependencies>
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ForestTechMC:ForestRedisAPI:VERSION'
}
You need to (soft)depend on ForestRedisAPI in order to work properly. Choose depend(s) for mandatory usage of the ForestRedisAPI or softdepend(s) for optional usage.
# Required dependency
depend: [ForestRedisAPI]
# Optional dependency
softdepend: [ForestRedisAPI]
# Required dependency
depends: [ForestRedisAPI]
# Optional dependency
softDepends: [ForestRedisAPI]