![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2F912k3PP.png)
- Easy communication using spigot/bungee events.
- Supports BungeeCord and Spigot servers.
- Same API methods for Bungee and Spigot - no more differences between platforms. Just use the correct Event import.
- Support sending custom objects using built-in Gson.
- Async execution
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2F3DT4DPm.png)
- Put ForestRedisAPI.jar into your plugins folder (both bungee and spigot is supported)
- Restart server
- Edit config files in plugins/ForestRedisAPI directory (see Configuration below)
- Restart server OR reload plugin using /forestredis reload command
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FM4teOGA.png)
Here is the default configuration file. It is same for both BungeeCord and Spigot.
Code (YAML):
# Redis server credentials. If no password/username is required, type "null"
redis:
hostname
:
"localhost"
port
: 6379
username
: null
password
: null
ssl
: false
# Name of the current server. Shall be unique across the network!
serverIdentifier
:
"MySuperServer1"
# Names of the channels to subscribe on start. Can be empty as plugins can manually subscribe on their own.
# For detailed information see our GitHub: https://github.com/ForestTechMC/ForestRedisAPI
channels
:
-
"my_channel"
![[IMG]](/proxy/image?url=https%3A%2F%2Fi.imgur.com%2FS7Abm54.png)
This plugin is very light-weight, so only two commands are available.
- /forestredis Shows current version
- /forestredis reload Reloads the plugin and restarts the connection
There is also only one permission:
- forestredis.admin Allows usage of the commands