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 = "0.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package de.kentoj.scrow.velocity;
|
||||
|
||||
import com.mongodb.reactivestreams.client.MongoDatabase;
|
||||
import de.kentoj.kencommandapi.VelocityKenCommandApi;
|
||||
import de.kentoj.scrowlib.connection.DatabaseConnectionFactory;
|
||||
import de.kentoj.scrowlib.servermanager.ServerManager;
|
||||
import io.nats.client.Connection;
|
||||
import lombok.AccessLevel;
|
||||
|
|
@ -14,7 +14,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
public class ScrowAPI {
|
||||
|
||||
@Getter
|
||||
private static @Nullable MongoDatabase database;
|
||||
private static DatabaseConnectionFactory dbConFactory;
|
||||
@Getter
|
||||
private static VelocityKenCommandApi commandApi;
|
||||
@Getter
|
||||
|
|
@ -22,11 +22,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 setCommandApi(VelocityKenCommandApi commandApi) {
|
||||
ScrowAPI.commandApi = commandApi;
|
||||
|
|
@ -41,5 +36,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue