lowk want to rename these modules
This commit is contained in:
parent
5a4ae1b7f1
commit
702fa6deeb
10 changed files with 117 additions and 35 deletions
43
core-impl/build.gradle.kts
Normal file
43
core-impl/build.gradle.kts
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
plugins {
|
||||
id("java")
|
||||
id("com.gradleup.shadow") version "9.2.0"
|
||||
id("xyz.jpenilla.run-paper") version "2.3.1"
|
||||
}
|
||||
|
||||
group = "de.kentoj.scrow"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
||||
name = "spigotmc-repo"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
|
||||
compileOnly("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
||||
implementation(project(":core-api"))
|
||||
}
|
||||
|
||||
tasks {
|
||||
runServer {
|
||||
|
||||
minecraftVersion("1.21.11")
|
||||
downloadPlugins {
|
||||
url("https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/5.7.1/PAPER/ViaVersion-5.7.1.jar")
|
||||
url("https://hangarcdn.papermc.io/plugins/ViaVersion/ViaBackwards/versions/5.7.1/PAPER/ViaBackwards-5.7.1.jar")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.build {
|
||||
dependsOn("shadowJar")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
3
core-impl/run/eula.txt
Normal file
3
core-impl/run/eula.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://aka.ms/MinecraftEULA).
|
||||
#Sun Feb 15 11:54:50 CET 2026
|
||||
eula=true
|
||||
|
|
@ -1,12 +1,14 @@
|
|||
package de.kentoj.scrow;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Main {
|
||||
public class CoreImplPlugin extends JavaPlugin {
|
||||
|
||||
public static void main(String[] args) {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
ScrowAPISurface.initScrowAPI(false);
|
||||
{
|
||||
var playerId = UUID.randomUUID();
|
||||
|
|
@ -25,4 +27,9 @@ public class Main {
|
|||
}
|
||||
ScrowAPISurface.destroyScrowAPI();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -9,9 +9,7 @@ import de.kentoj.scrow.economy.MongoEconomyService;
|
|||
import lombok.AccessLevel;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.bson.UuidRepresentation;
|
||||
import org.bson.codecs.configuration.CodecProvider;
|
||||
import org.bson.codecs.configuration.CodecRegistries;
|
||||
import org.bson.codecs.configuration.CodecRegistry;
|
||||
import org.bson.codecs.pojo.PojoCodecProvider;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
|
|
|
|||
5
core-impl/src/main/resources/plugin.yml
Normal file
5
core-impl/src/main/resources/plugin.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
name: "CoreImpl"
|
||||
version: "1.0"
|
||||
main: "de.kentoj.scrow.CoreImplPlugin"
|
||||
api-version: "1.1"
|
||||
author: "Kento2 <kento@placeq.com>"
|
||||
Loading…
Add table
Add a link
Reference in a new issue