meow :3
This commit is contained in:
parent
739abce169
commit
044a0d674a
11 changed files with 100 additions and 13 deletions
18
.classpath
Normal file
18
.classpath
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" output="bin/main" path="src/main/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="gradle_scope" value="main"/>
|
||||||
|
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="src" output="bin/main" path="build/generated/plugin-yml/Paper">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="gradle_scope" value="main"/>
|
||||||
|
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
|
||||||
|
<classpathentry kind="output" path="bin/default"/>
|
||||||
|
</classpath>
|
34
.project
Normal file
34
.project
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>civil-core-civilcore</name>
|
||||||
|
<comment>Project civilcore created by Buildship.</comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
||||||
|
</natures>
|
||||||
|
<filteredResources>
|
||||||
|
<filter>
|
||||||
|
<id>1745013535336</id>
|
||||||
|
<name></name>
|
||||||
|
<type>30</type>
|
||||||
|
<matcher>
|
||||||
|
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
||||||
|
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
||||||
|
</matcher>
|
||||||
|
</filter>
|
||||||
|
</filteredResources>
|
||||||
|
</projectDescription>
|
13
.settings/org.eclipse.buildship.core.prefs
Normal file
13
.settings/org.eclipse.buildship.core.prefs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
arguments=--init-script /home/hex/.cache/jdtls/config/org.eclipse.osgi/248/0/.cp/gradle/init/init.gradle
|
||||||
|
auto.sync=false
|
||||||
|
build.scans.enabled=false
|
||||||
|
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
||||||
|
connection.project.dir=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
gradle.user.home=
|
||||||
|
java.home=/opt/openjdk-bin-21.0.6_p7
|
||||||
|
jvm.arguments=
|
||||||
|
offline.mode=false
|
||||||
|
override.workspace.settings=true
|
||||||
|
show.console.view=true
|
||||||
|
show.executions.view=true
|
7
bin/main/paper-plugin.yml
Normal file
7
bin/main/paper-plugin.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
api-version: "1.21"
|
||||||
|
name: civil-core
|
||||||
|
version: 0.1.0
|
||||||
|
main: rip.iwakura.civil.Core
|
||||||
|
authors:
|
||||||
|
- hex
|
||||||
|
- grng
|
BIN
bin/main/rip/iwakura/civil/Core.class
Normal file
BIN
bin/main/rip/iwakura/civil/Core.class
Normal file
Binary file not shown.
|
@ -3,7 +3,6 @@ version = "0.1.0"
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
kotlin("jvm") version "2.1.10"
|
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||||
id("de.eldoria.plugin-yml.paper") version "0.7.1"
|
id("de.eldoria.plugin-yml.paper") version "0.7.1"
|
||||||
}
|
}
|
||||||
|
@ -22,13 +21,18 @@ paper {
|
||||||
apiVersion = "1.21"
|
apiVersion = "1.21"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Jar> {
|
||||||
|
val isDebug = providers.gradleProperty("isDebug")
|
||||||
|
if (isDebug.isPresent()) {
|
||||||
|
destinationDirectory.set(file(isDebug))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
||||||
library("com.google.code.gson", "gson", "2.10.1") // All platform plugins
|
library("com.google.code.gson", "gson", "2.10.1") // All platform plugins
|
||||||
shadow("org.jetbrains.kotlin:kotlin-stdlib:2.1.10")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
java {
|
||||||
jvmToolchain(21)
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
|
|
10
build.sh
Normal file
10
build.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
catch () {
|
||||||
|
echo "An error occured: see above."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
./gradlew build -PisDebug=./server/plugins || catch
|
||||||
|
|
||||||
|
cd server && java -jar server.jar -nogui && cd ..
|
BIN
kls_database.db
BIN
kls_database.db
Binary file not shown.
10
src/main/java/rip/iwakura/civil/Core.java
Normal file
10
src/main/java/rip/iwakura/civil/Core.java
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
package rip.iwakura.civil;
|
||||||
|
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
public class Core extends JavaPlugin {
|
||||||
|
@Override
|
||||||
|
public void onEnable() {
|
||||||
|
getLogger().info("Hello world! We are booting up...");
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +0,0 @@
|
||||||
package rip.iwakura.civil
|
|
||||||
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin
|
|
||||||
|
|
||||||
class Core: JavaPlugin() {
|
|
||||||
override fun onEnable() {
|
|
||||||
logger.info { "Hello there! We are booting up..." }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue