gradle sucks etc

This commit is contained in:
kento2 2026-06-27 16:46:30 +02:00
parent 72b4edf48b
commit b0d4a7d061
25 changed files with 463 additions and 123 deletions

View file

@ -5,7 +5,6 @@ plugins {
}
group = "de.kentoj.scrow"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()

View file

@ -1,9 +1,9 @@
package de.kentoj.scrow.bukkit;
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.connection.DatabaseConnectionFactory;
import de.kentoj.scrowlib.servermanager.ServerManager;
import io.nats.client.Connection;
import lombok.AccessLevel;
@ -17,7 +17,7 @@ import reactor.core.scheduler.Scheduler;
public class ScrowAPI {
@Getter
private static @Nullable MongoDatabase database;
private static DatabaseConnectionFactory dbConFactory;
@Getter
private static BukkitKenCommandApi commandApi;
@Getter
@ -33,11 +33,6 @@ public class ScrowAPI {
@Getter
private static ServerManager serverManager;
@ApiStatus.Internal
public static void setDatabase(@Nullable MongoDatabase database) {
ScrowAPI.database = database;
}
@ApiStatus.Internal
public static void setEconomyService(EconomyService economyService) {
ScrowAPI.economyService = economyService;
@ -72,5 +67,10 @@ public class ScrowAPI {
public static void setServerManager(ServerManager serverManager) {
ScrowAPI.serverManager = serverManager;
}
@ApiStatus.Internal
public static void setDbConFactory(@Nullable DatabaseConnectionFactory dbConFactory) {
ScrowAPI.dbConFactory = dbConFactory;
}
}

View file

@ -0,0 +1,12 @@
package de.kentoj.scrow.bukkit.minigame;
import de.kentoj.scrowlib.servermanager.ServerInstance;
public interface MinigameInfo {
String getName();
int getPlayerCount();
ServerInstance getServerInstance();
}