From 2a75eeafaaed5166f6d4afd954bff4abcbf59ac7 Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Fri, 28 Jun 2024 13:11:52 +0200 Subject: [PATCH] move moe.jansel.platinum to dev.jansel.platinum --- build.gradle.kts | 4 ++-- .../kotlin/{moe => dev}/jansel/platinum/Platinum.kt | 10 +++------- .../{moe => dev}/jansel/platinum/PlatinumBootstrap.kt | 4 ++-- .../jansel/platinum/commands/PlatinumCommand.kt | 3 +-- src/main/resources/paper-plugin.yml | 6 +++--- 5 files changed, 11 insertions(+), 16 deletions(-) rename src/main/kotlin/{moe => dev}/jansel/platinum/Platinum.kt (93%) rename src/main/kotlin/{moe => dev}/jansel/platinum/PlatinumBootstrap.kt (90%) rename src/main/kotlin/{moe => dev}/jansel/platinum/commands/PlatinumCommand.kt (91%) diff --git a/build.gradle.kts b/build.gradle.kts index c2f2d97..937c5a1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.8" } -group = "moe.jansel" +group = "dev.jansel" version = "1.0-SNAPSHOT" repositories { @@ -68,5 +68,5 @@ tasks.build { } tasks.shadowJar { - relocate("org.bstats", "moe.jansel") + relocate("org.bstats", "dev.jansel") } diff --git a/src/main/kotlin/moe/jansel/platinum/Platinum.kt b/src/main/kotlin/dev/jansel/platinum/Platinum.kt similarity index 93% rename from src/main/kotlin/moe/jansel/platinum/Platinum.kt rename to src/main/kotlin/dev/jansel/platinum/Platinum.kt index 80c8c8c..0b3dac3 100644 --- a/src/main/kotlin/moe/jansel/platinum/Platinum.kt +++ b/src/main/kotlin/dev/jansel/platinum/Platinum.kt @@ -1,4 +1,4 @@ -package moe.jansel.platinum +package dev.jansel.platinum import io.ktor.client.* import io.ktor.client.call.* @@ -58,14 +58,14 @@ class Platinum : JavaPlugin() { json(Json { ignoreUnknownKeys = true }) } install(UserAgent) { - agent = "https://git.jansel.moe/jreimers/Platinum v$version(jansel@jansel.moe)" + agent = "https://git.jansel.dev/jansel/Platinum v$version(jansel@jansel.moe)" } } if (version.contains("SNAPSHOT")) { logger.info("Local Git Commit: $hash") logger.info("Getting remote Git Commit...") runBlocking { - val res = webClient.get("https://git.jansel.moe/") { + val res = webClient.get("https://git.jansel.dev/") { url { path("/api/v1/repos/jreimers/platinum/commits") parameters.append("limit", "1") @@ -91,10 +91,6 @@ class Platinum : JavaPlugin() { // Plugin shutdown logic } - private fun registerCommands() { - - } - @Serializable data class CommitApiResponse( val sha: String diff --git a/src/main/kotlin/moe/jansel/platinum/PlatinumBootstrap.kt b/src/main/kotlin/dev/jansel/platinum/PlatinumBootstrap.kt similarity index 90% rename from src/main/kotlin/moe/jansel/platinum/PlatinumBootstrap.kt rename to src/main/kotlin/dev/jansel/platinum/PlatinumBootstrap.kt index a3caf64..722e4c4 100644 --- a/src/main/kotlin/moe/jansel/platinum/PlatinumBootstrap.kt +++ b/src/main/kotlin/dev/jansel/platinum/PlatinumBootstrap.kt @@ -1,11 +1,11 @@ -package moe.jansel.platinum +package dev.jansel.platinum import io.papermc.paper.command.brigadier.Commands import io.papermc.paper.plugin.bootstrap.BootstrapContext import io.papermc.paper.plugin.bootstrap.PluginBootstrap import io.papermc.paper.plugin.lifecycle.event.registrar.ReloadableRegistrarEvent import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents -import moe.jansel.platinum.commands.PlatinumCommand +import dev.jansel.platinum.commands.PlatinumCommand @Suppress("UnstableApiUsage") class PlatinumBootstrap : PluginBootstrap { diff --git a/src/main/kotlin/moe/jansel/platinum/commands/PlatinumCommand.kt b/src/main/kotlin/dev/jansel/platinum/commands/PlatinumCommand.kt similarity index 91% rename from src/main/kotlin/moe/jansel/platinum/commands/PlatinumCommand.kt rename to src/main/kotlin/dev/jansel/platinum/commands/PlatinumCommand.kt index b2a1319..27baff1 100644 --- a/src/main/kotlin/moe/jansel/platinum/commands/PlatinumCommand.kt +++ b/src/main/kotlin/dev/jansel/platinum/commands/PlatinumCommand.kt @@ -1,4 +1,4 @@ -package moe.jansel.platinum.commands +package dev.jansel.platinum.commands import io.papermc.paper.command.brigadier.BasicCommand import io.papermc.paper.command.brigadier.CommandSourceStack @@ -10,5 +10,4 @@ class PlatinumCommand: BasicCommand { stack.sender.sendRichMessage("Fun activated!"); } } - } \ No newline at end of file diff --git a/src/main/resources/paper-plugin.yml b/src/main/resources/paper-plugin.yml index 63a5a42..bbe5150 100644 --- a/src/main/resources/paper-plugin.yml +++ b/src/main/resources/paper-plugin.yml @@ -1,12 +1,12 @@ name: Platinum version: dev -main: moe.jansel.platinum.Platinum +main: dev.jansel.platinum.Platinum api-version: '1.20' prefix: platinum authors: [ Jansel ] description: Yet another rewrite of my old datasync Plugin -website: https://git.jansel.moe/jreimers/platinum -bootstrapper: moe.jansel.platinum.PlatinumBootstrap +website: https://git.jansel.dev/jansel/platinum +bootstrapper: dev.jansel.platinum.PlatinumBootstrap permissions: platinum.download: