mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Accept server async
This commit is contained in:
1 parent
f506f0fd00
commit
c5b1403510
1 file changed
+1
-1
@@ -454,7 +454,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes {
|
|||||||
return CompletableFuture.completedFuture(null);
|
return CompletableFuture.completedFuture(null);
|
||||||
}
|
}
|
||||||
if (server == null) {
|
if (server == null) {
|
||||||
return getNetworkMessenger().getServerName(requester).thenAccept(serverName -> {
|
return getNetworkMessenger().getServerName(requester).thenAcceptAsync(serverName -> {
|
||||||
// Set the server name
|
// Set the server name
|
||||||
this.server = new Server(serverName);
|
this.server = new Server(serverName);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user