move moe.jansel.platinum to dev.jansel.platinum
Some checks failed
build / build (21, ubuntu-22.04) (push) Failing after 1m27s
Some checks failed
build / build (21, ubuntu-22.04) (push) Failing after 1m27s
This commit is contained in:
parent
44d96925e9
commit
2a75eeafaa
@ -7,7 +7,7 @@ plugins {
|
|||||||
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.8"
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "moe.jansel"
|
group = "dev.jansel"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -68,5 +68,5 @@ tasks.build {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.shadowJar {
|
tasks.shadowJar {
|
||||||
relocate("org.bstats", "moe.jansel")
|
relocate("org.bstats", "dev.jansel")
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package moe.jansel.platinum
|
package dev.jansel.platinum
|
||||||
|
|
||||||
import io.ktor.client.*
|
import io.ktor.client.*
|
||||||
import io.ktor.client.call.*
|
import io.ktor.client.call.*
|
||||||
@ -58,14 +58,14 @@ class Platinum : JavaPlugin() {
|
|||||||
json(Json { ignoreUnknownKeys = true })
|
json(Json { ignoreUnknownKeys = true })
|
||||||
}
|
}
|
||||||
install(UserAgent) {
|
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")) {
|
if (version.contains("SNAPSHOT")) {
|
||||||
logger.info("Local Git Commit: $hash")
|
logger.info("Local Git Commit: $hash")
|
||||||
logger.info("Getting remote Git Commit...")
|
logger.info("Getting remote Git Commit...")
|
||||||
runBlocking {
|
runBlocking {
|
||||||
val res = webClient.get("https://git.jansel.moe/") {
|
val res = webClient.get("https://git.jansel.dev/") {
|
||||||
url {
|
url {
|
||||||
path("/api/v1/repos/jreimers/platinum/commits")
|
path("/api/v1/repos/jreimers/platinum/commits")
|
||||||
parameters.append("limit", "1")
|
parameters.append("limit", "1")
|
||||||
@ -91,10 +91,6 @@ class Platinum : JavaPlugin() {
|
|||||||
// Plugin shutdown logic
|
// Plugin shutdown logic
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun registerCommands() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class CommitApiResponse(
|
data class CommitApiResponse(
|
||||||
val sha: String
|
val sha: String
|
@ -1,11 +1,11 @@
|
|||||||
package moe.jansel.platinum
|
package dev.jansel.platinum
|
||||||
|
|
||||||
import io.papermc.paper.command.brigadier.Commands
|
import io.papermc.paper.command.brigadier.Commands
|
||||||
import io.papermc.paper.plugin.bootstrap.BootstrapContext
|
import io.papermc.paper.plugin.bootstrap.BootstrapContext
|
||||||
import io.papermc.paper.plugin.bootstrap.PluginBootstrap
|
import io.papermc.paper.plugin.bootstrap.PluginBootstrap
|
||||||
import io.papermc.paper.plugin.lifecycle.event.registrar.ReloadableRegistrarEvent
|
import io.papermc.paper.plugin.lifecycle.event.registrar.ReloadableRegistrarEvent
|
||||||
import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents
|
import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents
|
||||||
import moe.jansel.platinum.commands.PlatinumCommand
|
import dev.jansel.platinum.commands.PlatinumCommand
|
||||||
|
|
||||||
@Suppress("UnstableApiUsage")
|
@Suppress("UnstableApiUsage")
|
||||||
class PlatinumBootstrap : PluginBootstrap {
|
class PlatinumBootstrap : PluginBootstrap {
|
@ -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.BasicCommand
|
||||||
import io.papermc.paper.command.brigadier.CommandSourceStack
|
import io.papermc.paper.command.brigadier.CommandSourceStack
|
||||||
@ -10,5 +10,4 @@ class PlatinumCommand: BasicCommand {
|
|||||||
stack.sender.sendRichMessage("<rainbow>Fun activated!");
|
stack.sender.sendRichMessage("<rainbow>Fun activated!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,12 +1,12 @@
|
|||||||
name: Platinum
|
name: Platinum
|
||||||
version: dev
|
version: dev
|
||||||
main: moe.jansel.platinum.Platinum
|
main: dev.jansel.platinum.Platinum
|
||||||
api-version: '1.20'
|
api-version: '1.20'
|
||||||
prefix: platinum
|
prefix: platinum
|
||||||
authors: [ Jansel ]
|
authors: [ Jansel ]
|
||||||
description: Yet another rewrite of my old datasync Plugin
|
description: Yet another rewrite of my old datasync Plugin
|
||||||
website: https://git.jansel.moe/jreimers/platinum
|
website: https://git.jansel.dev/jansel/platinum
|
||||||
bootstrapper: moe.jansel.platinum.PlatinumBootstrap
|
bootstrapper: dev.jansel.platinum.PlatinumBootstrap
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
platinum.download:
|
platinum.download:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user