Updated spigot
This commit is contained in:
parent
999e134b64
commit
0dfe28ef89
8
pom.xml
8
pom.xml
@ -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
2
run.sh
Normal file → Executable 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
|
@ -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)
|
||||||
|
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user