erm
This commit is contained in:
parent
45d400f0e8
commit
812e2361c9
@ -28,14 +28,7 @@ class Platinum : JavaPlugin() {
|
|||||||
lateinit var version: String
|
lateinit var version: String
|
||||||
lateinit var hash: String
|
lateinit var hash: String
|
||||||
|
|
||||||
val webClient: HttpClient = HttpClient(CIO) {
|
lateinit var webClient: HttpClient
|
||||||
install(ContentNegotiation) {
|
|
||||||
json(Json { ignoreUnknownKeys = true })
|
|
||||||
}
|
|
||||||
install(UserAgent) {
|
|
||||||
agent = "https://git.jansel.moe/jreimers/Platinum (jansel@jansel.moe)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -49,10 +42,18 @@ class Platinum : JavaPlugin() {
|
|||||||
props.load(getResource("build-vars.properties"))
|
props.load(getResource("build-vars.properties"))
|
||||||
version = props.getProperty("version")
|
version = props.getProperty("version")
|
||||||
hash = props.getProperty("gitCommit")
|
hash = props.getProperty("gitCommit")
|
||||||
logger.info("Loading Platinum $version")
|
logger.info("Loading Platinum v$version")
|
||||||
if (version.contains("SNAPSHOT")) {
|
if (version.contains("SNAPSHOT")) {
|
||||||
logger.info("Git Commit: $hash")
|
logger.info("Git Commit: $hash")
|
||||||
}
|
}
|
||||||
|
webClient = HttpClient(CIO) {
|
||||||
|
install(ContentNegotiation) {
|
||||||
|
json(Json { ignoreUnknownKeys = true })
|
||||||
|
}
|
||||||
|
install(UserAgent) {
|
||||||
|
agent = "https://git.jansel.moe/jreimers/Platinum v$version(jansel@jansel.moe)"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDisable() {
|
override fun onDisable() {
|
||||||
|
@ -8,8 +8,8 @@ description: Yet another rewrite of my old datasync Plugin
|
|||||||
website: https://git.jansel.moe/jreimers/platinum
|
website: https://git.jansel.moe/jreimers/platinum
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
palladium:
|
platinum:
|
||||||
usage: /palladium <command> [args]
|
usage: /platinum <command> [args]
|
||||||
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user