test
This commit is contained in:
parent
fb2a05d2e8
commit
60e79113a1
10
main.go
10
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{
|
||||
|
Loading…
Reference in New Issue
Block a user