test
This commit is contained in:
parent
fb2a05d2e8
commit
60e79113a1
10
main.go
10
main.go
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
clients int = 0
|
clients int = -1
|
||||||
paused bool = true
|
paused bool = true
|
||||||
forcePaused bool = true
|
forcePaused bool = true
|
||||||
)
|
)
|
||||||
@ -185,6 +185,14 @@ func main() {
|
|||||||
b = c
|
b = c
|
||||||
read -= int(p.PLength)
|
read -= int(p.PLength)
|
||||||
|
|
||||||
|
if clients < 0 {
|
||||||
|
px := PacketAdminRCon{
|
||||||
|
Packet: Packet{PType: AdminPacketAdminRCon},
|
||||||
|
Command: "clients",
|
||||||
|
}
|
||||||
|
_, err = conn.Write(px.Bytes())
|
||||||
|
}
|
||||||
|
|
||||||
if !paused && forcePaused {
|
if !paused && forcePaused {
|
||||||
paused = false
|
paused = false
|
||||||
px := PacketAdminRCon{
|
px := PacketAdminRCon{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user