Init paper plugin
This commit is contained in:
parent
bc709081b1
commit
801e205540
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EntryPointsManager">
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="org.bukkit.event.EventHandler" />
|
||||
</list>
|
||||
</component>
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,5 +1,6 @@
|
|||
plugins {
|
||||
kotlin("jvm") version "1.9.0"
|
||||
id("io.papermc.paperweight.userdev") version "1.5.9"
|
||||
}
|
||||
|
||||
group = "org.example"
|
||||
|
@ -7,10 +8,12 @@ version = "1.0-SNAPSHOT"
|
|||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(kotlin("test"))
|
||||
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
|
@ -18,5 +21,5 @@ tasks.test {
|
|||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(8)
|
||||
jvmToolchain(17)
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package net.fifitido.templateplugin
|
||||
|
||||
import net.kyori.adventure.text.Component
|
||||
import org.bukkit.plugin.java.JavaPlugin
|
||||
|
||||
class TemplatePlugin : JavaPlugin() {
|
||||
override fun onEnable() {
|
||||
componentLogger.info(Component.text("Plugin Enabled"))
|
||||
}
|
||||
|
||||
override fun onDisable() {
|
||||
componentLogger.info(Component.text("Plugin Disabled"))
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
name: ExamplePlugin
|
||||
version: 1.0.0
|
||||
main: net.fifitido.templateplugin.TemplatePlugin
|
||||
description: A template plugin
|
||||
author: FiFiTiDo
|
||||
website: https://fifitido.net
|
||||
api-version: '1.20'
|
Loading…
Reference in New Issue