Skip to content

guyuemochen/JavaRconForSquad

Repository files navigation

RconForSquad

This is a java based rcon package for Squad(战术小队)

功能

  1. 基础的连接
  2. squad聊天记录监听

使用方式

基础发送指令方式

public static void main(String[] args){
        try{
            org.guyuemochen.JavaRconForSquad.Rcon rcon = new Rcon("127.0.0.1", 27725, "password".getBytes());
            String response = rcon.command("listplayers");
            System.out.println(response);
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }

监听游戏内聊天,TK信息,建队信息

public static void main(String[] args){
        try{
            org.guyuemochen.JavaRconForSquad.Rcon rcon = new Rcon("127.0.0.1", 27725, "password".getBytes());
            String response = rcon.listenChat("listplayers");
            System.out.println(response);
        } catch (Exception ex){
            ex.printStackTrace();
        }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages