Made plugin executable #1
This commit is contained in:
@@ -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()}")
|
||||
}
|
13
src/main/kotlin/de/sh_edraft/OntimeHandlerPlugin.kt
Normal file
13
src/main/kotlin/de/sh_edraft/OntimeHandlerPlugin.kt
Normal 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!")
|
||||
}
|
||||
}
|
3
src/main/resources/plugin.yml
Normal file
3
src/main/resources/plugin.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: sh_edraft.OntimeHandlerPlugin
|
||||
version: 1.0
|
||||
main: de.sh_edraft.OntimeHandlerPlugin
|
Reference in New Issue
Block a user