From 8ba16ad5c52ede69c3f52585de5fa3efd01c6f68 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Thu, 20 Jun 2024 16:00:30 +0800 Subject: [PATCH] update docs --- README.md | 13 +++++++++---- gradle.properties | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1daae0e..340e27d 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,24 @@ # RCONLib + * [RCONLib](#rconlib) * [简介](#简介) * [添加依赖](#添加依赖) * [使用示例](#使用示例) + # 简介 -* Kotlin实现的RCON库可以连接服务器并远程管理. +* Kotlin实现的RCON库可以连接服务器并远程管理. + * 一个实例可以连接一个服务器, 连接多个服务器需要创建多个实例. - + * 代码太简单直接翻源码就可以知道怎么使用了 +* 最低JDK为11 + # 添加依赖 ```gradle @@ -32,9 +37,9 @@ dependencies { fun main() { val rcon = RCon() rcon.authenticate("this is a password") - + val response = rcon.executeCommand("list") - + println(response) // or println(response.body) # override toString method to directly print body filed } ``` \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 98017e0..1a7221f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style=official -libVersion=1.0.1 \ No newline at end of file +libVersion=1.1.0 \ No newline at end of file