Updated spigot

This commit is contained in:
Sven Heidemann 2023-12-06 18:54:13 +01:00
parent 999e134b64
commit 0dfe28ef89
6 changed files with 9 additions and 9 deletions

0
build.sh Normal file → Executable file
View File

View File

@ -4,12 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>kd_ontime_handler_spigot</artifactId> <artifactId>sh_ontime_handler_spigot</artifactId>
<groupId>de.sh-edraft</groupId> <groupId>de.sh-edraft</groupId>
<version>1.0-SNAPSHOT</version> <version>1.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>kd_ontime_handler_spigot</name> <name>sh_ontime_handler_spigot</name>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -28,7 +28,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.19.2-R0.1-SNAPSHOT</version> <version>1.20.1-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

2
run.sh Normal file → Executable file
View File

@ -1,5 +1,5 @@
bash build.sh bash build.sh
cp target/kd_ontime_handler_spigot-*-SNAPSHOT.jar spigot/plugins cp target/sh_ontime_handler_spigot-*-SNAPSHOT.jar spigot/plugins
cd spigot cd spigot
export PLUGIN_ENVIRONMENT=development export PLUGIN_ENVIRONMENT=development
java -Xms1G -Xmx8G -jar spigot.jar --nogui java -Xms1G -Xmx8G -jar spigot.jar --nogui

View File

@ -15,9 +15,9 @@ open class OntimeHandlerPlugin() : JavaPlugin() {
override fun onEnable() { override fun onEnable() {
this.config = Config(logger) this.config = Config(logger)
this.config.read("plugins/kd_ontime/config.properties", false) this.config.read("plugins/sh_ontime/config.properties", false)
this.config.read("plugins/kd_ontime/config.${this.config.environment}.properties", true) this.config.read("plugins/sh_ontime/config.${this.config.environment}.properties", true)
this.config.read("plugins/kd_ontime/config.${this.config.hostName}.properties", true) this.config.read("plugins/sh_ontime/config.${this.config.hostName}.properties", true)
this.dataService = DataService(logger, this.config) this.dataService = DataService(logger, this.config)

View File

@ -1,3 +1,3 @@
name: sh_edraft.OntimeHandlerPlugin name: sh_edraft.OntimeHandlerPlugin
version: 1.0 version: 1.1
main: de.sh_edraft.OntimeHandlerPlugin main: de.sh_edraft.OntimeHandlerPlugin