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