This commit is contained in:
kento2 2026-05-31 23:06:21 +02:00
parent d3e20606d9
commit 5a255aeac0
16 changed files with 128 additions and 74 deletions

View file

@ -36,8 +36,9 @@ dependencies {
api("io.nats:jnats:2.25.2")
api("de.kentoj.scrow:kencommandapi-core:0.4")
implementation("de.kentoj.scrow:kencommandapi-bukkit:0.4")
api("de.kentoj.scrow:kencommandapi-bukkit:0.4")
api(project(":core-lib"))
}
publishing {

View file

@ -4,6 +4,7 @@ import com.mongodb.reactivestreams.client.MongoDatabase;
import de.kentoj.kencommandapi.BukkitKenCommandApi;
import de.kentoj.scrow.bukkit.friends.FriendRequestService;
import de.kentoj.scrow.bukkit.friends.FriendshipService;
import de.kentoj.scrowlib.servermanager.ServerManager;
import io.nats.client.Connection;
import lombok.AccessLevel;
import lombok.Getter;

View file

@ -1,25 +0,0 @@
package de.kentoj.scrow.bukkit;
import org.jetbrains.annotations.NotNull;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface ServerManager {
/**
* @return Mono with handle of deployed server
*/
Mono<@NotNull String> deployServer(String template);
/**
* @return Flux with handles of running servers
*/
Flux<@NotNull String> getRunningServers();
/**
* Attempts a clean shutdown, if that doesn't succeed, kills the server.
*/
Mono<@NotNull Void> destroyServer(String handle);
Mono<@NotNull Void> updateState(String handle, String state);
}