gradle sucks etc
This commit is contained in:
parent
72b4edf48b
commit
b0d4a7d061
25 changed files with 463 additions and 123 deletions
|
|
@ -5,7 +5,6 @@ plugins {
|
|||
}
|
||||
|
||||
group = "de.kentoj.scrow"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue