This commit is contained in:
shoopea 2020-06-21 15:37:17 +02:00
parent fb2a05d2e8
commit 60e79113a1

10
main.go
View File

@ -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{