Made plugin executable #1

This commit is contained in:
Sven Heidemann 2023-01-12 21:28:24 +01:00
parent 155094e476
commit d5ff74b6a4
9 changed files with 21 additions and 15 deletions

7
.gitignore vendored
View File

@ -25,7 +25,8 @@ hs_err_pid*
replay_pid*
# idea
.idea
.idea/*
# build sources
target
target/*
# spigot test server
spigot/*

View File

@ -3,6 +3,7 @@
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/spigot" />
</content>
</component>
</module>

View File

@ -1,7 +0,0 @@
fun main(args: Array<String>) {
println("Hello World!")
// Try adding program arguments via Run/Debug configuration.
// Learn more about running applications: https://www.jetbrains.com/help/idea/running-applications.html.
println("Program arguments: ${args.joinToString()}")
}

View File

@ -0,0 +1,13 @@
package de.sh_edraft
import org.bukkit.plugin.java.JavaPlugin
open class OntimeHandlerPlugin() : JavaPlugin() {
override fun onEnable() {
logger.info("onEnable is called!")
}
override fun onDisable() {
logger.info("onDisable is called!")
}
}

View File

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

View File

@ -1,5 +0,0 @@
#Generated by Maven
#Thu Jan 12 20:27:56 CET 2023
groupId=de.sh-edraft
artifactId=kd_ontime_handler_spigot
version=1.0-SNAPSHOT