Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Emerald | Server Manager API

Discord.js

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!

Developed By

Refine Development & Zowpy

Contact

Installing:

  1. Download the jar from releases
  2. Put the jar in all of your servers
  3. Modify the server name & redis credentials

API:

add the dependency to your maven project:

<dependency>
  <groupId>me.zowpy</groupId>
  <artifactId>emerald</artifactId>
  <version>1.0-SNAPSHOT</version>
  <scope>compile</scope>
</dependency>

Usage:

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:

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages