more re-organisation to new name
This commit is contained in:
parent
633e898f3c
commit
8c75b47a96
37 changed files with 219 additions and 197 deletions
|
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
id("dev.adamko.factoriowebmap.archetype.kotlin-jvm")
|
||||
id("dev.adamko.kafkatorio.lang.kotlin-jvm")
|
||||
}
|
||||
|
||||
//group = "${rootProject.group}.server"
|
||||
|
|
|
|||
|
|
@ -1,25 +1,22 @@
|
|||
package dev.adamko.ktrcon
|
||||
|
||||
import kotlin.time.Duration
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.runBlocking
|
||||
|
||||
fun main(): Unit = runBlocking {
|
||||
KtRconClient3(
|
||||
"localhost",
|
||||
27715,
|
||||
Password("coh9oongoojahX4")
|
||||
"localhost",
|
||||
27715,
|
||||
Password("coh9oongoojahX4")
|
||||
).use { client ->
|
||||
|
||||
|
||||
// client.send(PacketType.AUTH_REQUEST, "passwrd")
|
||||
client.send(PacketType.AUTH_REQUEST, "coh9oongoojahX4")
|
||||
delay(Duration.seconds(10))
|
||||
delay(10.seconds)
|
||||
|
||||
client.send(PacketType.EXEC_COMMAND, "/help")
|
||||
|
||||
|
||||
delay(Duration.seconds(10))
|
||||
|
||||
delay(10.seconds)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue