currently refactoring a lot
This commit is contained in:
parent
31eb8a92eb
commit
ea6ae529cc
32 changed files with 205 additions and 185 deletions
|
|
@ -18,15 +18,14 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
api(project(":core-lib"))
|
||||
api("io.papermc.paper:paper-api:1.21.11-rc3-R0.1-SNAPSHOT")
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.11-rc3-R0.1-SNAPSHOT")
|
||||
|
||||
// https://mvnrepository.com/artifact/io.nats/jnats
|
||||
api("io.nats:jnats:2.25.2")
|
||||
|
||||
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-core
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.23")
|
||||
api("de.kentoj.scrow:kencommandapi-core:0.28")
|
||||
// http://forge.kentoj.de/scrow/-/packages/maven/de.kentoj.scrow:kencommandapi-bukkit
|
||||
api("de.kentoj.scrow:kencommandapi-bukkit:0.23")
|
||||
api("de.kentoj.scrow:kencommandapi-bukkit:0.28")
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import de.kentoj.scrow.bukkit.misc.EconomyService;
|
|||
import de.kentoj.scrow.bukkit.misc.PlayerManager;
|
||||
import de.kentoj.scrow.bukkit.region.RegionManager;
|
||||
import de.kentoj.scrowlib.instancemanager.InstanceManager;
|
||||
import de.kentoj.scrowlib.messaging.MessageBroker;
|
||||
import io.nats.client.Connection;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
|
|
@ -33,7 +34,7 @@ public class ScrowAPI {
|
|||
@Getter
|
||||
private static FriendRequestService friendRequestService;
|
||||
@Getter
|
||||
private static Connection nats;
|
||||
private static MessageBroker messageBroker;
|
||||
@Getter
|
||||
private static InstanceManager instanceManager;
|
||||
@Getter
|
||||
|
|
@ -64,8 +65,8 @@ public class ScrowAPI {
|
|||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public static void setNats(Connection nats) {
|
||||
ScrowAPI.nats = nats;
|
||||
public static void setMessageBroker(MessageBroker messageBroker) {
|
||||
ScrowAPI.messageBroker = messageBroker;
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue