elif message.startswith('!resetme') or message.startswith('!reset'): if client.play_as == 255: conn.send_packet(AdminChat, action = Action.CHAT, destType = DestType.CLIENT, clientID = ClientID.SERVER, message = 'You can\'t dissolve the spectators, that\'d be silly!') # doing this first isn't perfect but I'm lazy else: companyparticipants = [] companyID = client.play_as companyclients = 0 for c in conn.clients.values(): if client.play_as == companyID: companyclients++ if (companyclients > 1): conn.send_packet(AdminChat, action = Action.CHAT, destType = DestType.CLIENT, clientID = ClientID.SERVER, message = 'Your company has other players in it - get them to leave before resetting!')