Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RTAkland committed Jun 20, 2024
1 parent 750eb2d commit 8ba16ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# RCONLib

<!-- TOC -->

* [RCONLib](#rconlib)
* [简介](#简介)
* [添加依赖](#添加依赖)
* [使用示例](#使用示例)

<!-- TOC -->

# 简介
* Kotlin实现的RCON库可以连接服务器并远程管理.

* Kotlin实现的RCON库可以连接服务器并远程管理.

* 一个实例可以连接一个服务器, 连接多个服务器需要创建多个实例.

* 代码太简单直接翻源码就可以知道怎么使用了

* 最低JDK为11

# 添加依赖

```gradle
Expand All @@ -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
}
```
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
kotlin.code.style=official
libVersion=1.0.1
libVersion=1.1.0

0 comments on commit 8ba16ad

Please sign in to comment.