Init paper plugin

This commit is contained in:
Evan Fiordeliso 2023-11-06 19:33:14 -05:00
parent bc709081b1
commit 801e205540
5 changed files with 32 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>

View File

@ -1,7 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <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="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" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>
</project> </project>

View File

@ -1,5 +1,6 @@
plugins { plugins {
kotlin("jvm") version "1.9.0" kotlin("jvm") version "1.9.0"
id("io.papermc.paperweight.userdev") version "1.5.9"
} }
group = "org.example" group = "org.example"
@ -7,10 +8,12 @@ version = "1.0-SNAPSHOT"
repositories { repositories {
mavenCentral() mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
} }
dependencies { dependencies {
testImplementation(kotlin("test")) testImplementation(kotlin("test"))
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
} }
tasks.test { tasks.test {
@ -18,5 +21,5 @@ tasks.test {
} }
kotlin { kotlin {
jvmToolchain(8) jvmToolchain(17)
} }

View File

@ -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"))
}
}

View File

@ -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'