mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 06:47:27 +00:00
Update TribufuServer.java
This commit is contained in:
parent
475d1c5dc6
commit
1839b59589
1 changed files with 10 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
package com.tribufu;
|
||||
|
||||
import com.tribufu.types.servers.Server;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
* Tribufu Server
|
||||
*
|
||||
|
|
@ -67,4 +70,11 @@ public class TribufuServer extends TribufuClient {
|
|||
public String getServerId() {
|
||||
return this.serverId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about the current server.
|
||||
*/
|
||||
public CompletableFuture<Server> getServerInfo() {
|
||||
return this.getServerById(this.serverId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue