Made plugin executable #1
This commit is contained in:
parent
155094e476
commit
d5ff74b6a4
7
.gitignore
vendored
7
.gitignore
vendored
@ -25,7 +25,8 @@ hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
# idea
|
||||
.idea
|
||||
.idea/*
|
||||
# build sources
|
||||
target
|
||||
|
||||
target/*
|
||||
# spigot test server
|
||||
spigot/*
|
||||
|
@ -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>
|
@ -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
|
Binary file not shown.
@ -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
|
Loading…
Reference in New Issue
Block a user