From facb58e4a2e17ff251cba61224d30842ba11c490 Mon Sep 17 00:00:00 2001 From: Taylor Becker Date: Sun, 22 May 2022 17:40:57 -0400 Subject: [PATCH] Replace template with SimplePlayerPortals --- README.md | 13 ++++--------- build.gradle.kts | 7 +++---- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle.kts | 2 +- .../SimplePlayerPortals.kt} | 4 ++-- src/main/resources/plugin.yml | 6 +++--- 7 files changed, 15 insertions(+), 21 deletions(-) rename src/main/kotlin/org/simplemc/{plugintemplate/KotlinPluginTemplate.kt => simpleplayerportals/SimplePlayerPortals.kt} (81%) diff --git a/README.md b/README.md index 55ba7b3..a3477a8 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,7 @@ -# mc-kotlin-plugin-template -Opinionated template/starter for creating Minecraft plugins in Kotlin using the Spigot API +# SimplePlayerPortals +Simple yet flexible Bukkit/Spigot plugin for player-built portals in Minecraft ## Features -- Gradle axion-release-plugin for managing semver - - automatic updating of `CHANGELOG.md` and `main/resources/plugin.yml` when a release is made -- Github Actions to build PRs and automatically create Github releases when a release tag is pushed -- [`ktlint`](https://github.com/JLLeitschuh/ktlint-gradle) Gradle plugin -- Gradle build generates a standard plugin jar which will download dependencies declared as -[`libraries`](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/plugin/PluginDescriptionFile.html#getLibraries()) in -`plugin.yml` and an "offline"/shadowed jar containing necessary dependencies +- Easy-to-use configurable player created portals +- Named portal "channels" to link portals together diff --git a/build.gradle.kts b/build.gradle.kts index 0eb0530..2224595 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -67,18 +67,17 @@ java { repositories { mavenCentral() - maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") - maven("https://oss.sonatype.org/content/repositories/snapshots") + maven("https://repo.papermc.io/repository/maven-public/") } dependencies { implementation(kotlin("stdlib-jdk8")) - compileOnly(group = "org.spigotmc", name = "spigot-api", version = "$mcApiVersion+") + compileOnly(group = "io.papermc.paper", name = "paper-api", version = "$mcApiVersion+") } tasks { wrapper { - gradleVersion = "7.4.1" + gradleVersion = "7.4.2" distributionType = Wrapper.DistributionType.ALL } diff --git a/gradle.properties b/gradle.properties index 4a77d08..09898ba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ kotlin.code.style=official kotlinVersion=1.6.21 mcApiVersion=1.18 -repoRef=SimpleMC/mc-kotlin-plugin-template +repoRef=SimpleMC/SimplePlayerPortals diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d7e66b5..92f06b5 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/settings.gradle.kts b/settings.gradle.kts index 4a8d7f8..b2d974c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,4 +6,4 @@ pluginManagement { } } -rootProject.name = "mc-kotlin-plugin-template" +rootProject.name = "simple-player-portals" diff --git a/src/main/kotlin/org/simplemc/plugintemplate/KotlinPluginTemplate.kt b/src/main/kotlin/org/simplemc/simpleplayerportals/SimplePlayerPortals.kt similarity index 81% rename from src/main/kotlin/org/simplemc/plugintemplate/KotlinPluginTemplate.kt rename to src/main/kotlin/org/simplemc/simpleplayerportals/SimplePlayerPortals.kt index ba46947..4203009 100644 --- a/src/main/kotlin/org/simplemc/plugintemplate/KotlinPluginTemplate.kt +++ b/src/main/kotlin/org/simplemc/simpleplayerportals/SimplePlayerPortals.kt @@ -1,11 +1,11 @@ -package org.simplemc.plugintemplate +package org.simplemc.simpleplayerportals import org.bukkit.plugin.java.JavaPlugin /** * KotlinPluginTemplate plugin */ -class KotlinPluginTemplate : JavaPlugin() { +class SimplePlayerPortals : JavaPlugin() { override fun onEnable() { // ensure config file exists diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index c9b4758..d69a691 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,8 +1,8 @@ -name: KotlinPluginTemplate -main: org.simplemc.plugintemplate.KotlinPluginTemplate +name: SimplePlayerPortals +main: org.simplemc.simpleplayerportals.SimplePlayerPortals version: "${version}" api-version: "${apiVersion}" -website: https://github.com/SimpleMC/mc-kotlin-plugin-template +website: https://github.com/SimpleMC/SimplePlayerPortals author: tajobe libraries: - org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}