Actually year after year, we have been putting all our efforts into making B3 more simple to install/configure/use. You have to keep in mind that lots of B3 users are no programmer nor sys admins. They are just people who like gaming and are renting a game server.The simpler it is to install/config/use B3, the less frustration there is on the end user side.The less time devs spend providing support on the forums the more time they have to fix/improve the bot.The K.I.S.S principle applies
myclientcache = ...self.registerEvent(b3.events.EVT_CLIENT_DISCONNECT)self.registerEvent(b3.events.EVT_CLIENT_CONNECT)...def onEvent(self, event): if event.type == b3.events.EVT_CLIENT_CONNECT: self.myclientcache[event.client.cid] = event.client if event.type == b3.events.EVT_CLIENT_DISCONNECT: client = self.myclientcache[event.data] self.info('player named %s just disconnected' % client.name) ## /!\ do not forget to delete this client from your cache is you do not need it anymore /!\ del self.myclientcache[event.data]
Bad Behavior has blocked 436 access attempts in the last 7 days.