From 60e79113a120ffc0b52d9197c15df3cc988c0821 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 21 Jun 2020 15:37:17 +0200 Subject: [PATCH] test --- main.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 5ea52e8..8fd37e2 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( func main() { var ( - clients int = 0 + clients int = -1 paused bool = true forcePaused bool = true ) @@ -185,6 +185,14 @@ func main() { b = c read -= int(p.PLength) + if clients < 0 { + px := PacketAdminRCon{ + Packet: Packet{PType: AdminPacketAdminRCon}, + Command: "clients", + } + _, err = conn.Write(px.Bytes()) + } + if !paused && forcePaused { paused = false px := PacketAdminRCon{