This commit is contained in:
shoopea 2021-11-10 14:08:58 +08:00
parent 6079431dda
commit fe292ba42a

19
ttd.go
View File

@ -453,16 +453,19 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
sp.Read(buffer[:p.PLength]) sp.Read(buffer[:p.PLength])
switch sp.Command { switch sp.Command {
case "clients": /*
for k, v := range s.Status.Clients { case "clients":
logInfoDebug("Server.Poll() : Client[%d] : %s - %d (%s)", k, v.Name, v.CompanyID, v.Address) for k, v := range s.Status.Clients {
} logInfoDebug("Server.Poll() : Client[%d] : %s - %d (%s)", k, v.Name, v.CompanyID, v.Address)
}
case "companies": case "companies":
for k, v := range s.Status.Companies { for k, v := range s.Status.Companies {
logInfoDebug("Server.Poll() : Company[%d] : %s", k, v.Name) logInfoDebug("Server.Poll() : Company[%d] : %s", k, v.Name)
} }
*/
case "pause": case "pause":
case "unpause":
default: default:
logInfoDebug("Server.Poll() : AdminPacketServerRConEnd :\n- Command: %s", sp.Command) logInfoDebug("Server.Poll() : AdminPacketServerRConEnd :\n- Command: %s", sp.Command)
} }