update
This commit is contained in:
10
ttd.go
10
ttd.go
@@ -735,3 +735,13 @@ func (s *ServerTTD) Initialize() {
|
||||
s.UpdateCompanies()
|
||||
s.UpdateClients()
|
||||
}
|
||||
|
||||
func (s *ServerTTD) SetPasswd(id uint8, passwd string) {
|
||||
px := PacketAdminRCon{
|
||||
Packet: Packet{PType: AdminPacketAdminRCon},
|
||||
Command: fmt.Sprintf("company_pw %d %s", id, passwd),
|
||||
}
|
||||
err := s.Send(px.Bytes())
|
||||
logErrorDebug(err, "Server.SetPasswd() : Send(AdminPacketAdminRCon)")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user