Пример #1
0
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         self.getClient(cid)
Пример #2
0
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         self.getClient(cid)
Пример #3
0
 def pluginsStarted(self):
     AbstractParser.pluginsStarted(self)
     self.info('connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             #self.clients.newClient(playerdata['cid'], guid=playerdata['guid'], name=playerdata['name'], team=playerdata['team'], squad=playerdata['squad'])
             name = p['name']
             self.debug('client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=name, team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(b3.events.Event(b3.events.EVT_CLIENT_JOIN, p, client))
Пример #4
0
 def pluginsStarted(self):
     AbstractParser.pluginsStarted(self)
     self.info('connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             #self.clients.newClient(playerdata['cid'], guid=playerdata['guid'], name=playerdata['name'], team=playerdata['team'], squad=playerdata['squad'])
             name = p['name']
             self.debug('client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=name, team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(b3.events.Event(b3.events.EVT_CLIENT_JOIN, p, client))
Пример #5
0
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             self.debug('Client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=p['name'], team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(self.getEvent('EVT_CLIENT_JOIN', data=p, client=client))
Пример #6
0
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             self.debug('Client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=p['name'], team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(self.getEvent('EVT_CLIENT_JOIN', data=p, client=client))