Emerald is an advanced redis-based server manager api. Originally developed privately for Refine Development by Zowpy, is now open sourced for your use. Please be sure to report any issues in the issues tab and don't forget to star!
Refine Development & Zowpy
- Download the jar from releases
- Put the jar in all of your servers
- Modify the server name & redis credentials
add the dependency to your maven project:
<dependency>
<groupId>me.zowpy</groupId>
<artifactId>emerald</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>getting a server by uuid:
EmeraldPlugin.getInstance().getSharedEmerald().getServerManager().getByUUID(youruuid);this returns CompletableFuture
getting a server by name:
EmeraldPlugin.getInstance().getSharedEmerald().getServerManager().getByName(yourServerName);this returns CompletableFuture
You can get a server by ip & port
EmeraldPlugin.getInstance().getSharedEmerald().getServerManager().getByConnection(ip, port);this returns CompletableFuture
EmeraldServer is the server's object with this you can get the following:
1. UUID
2. Name
3. IP & Port
4. MaxPlayers
5. ServerStatus
6. TPS
7. OnlinePlayers & WhitelistedPlayers (both are lists of uuids)