def onEvent(self, event):
     """
     Handle intercepted events
     """
     if event.type == self.console.getEventID('EVT_CLIENT_RADIO'):
         self.onRadio(event)
     else:
         Poweradminurt41Plugin.onEvent(self, event)
 def onStartup(self):
     """
     Initialize plugin settings
     """
     Poweradminurt41Plugin.onStartup(self)
     self._gears['reset'] = self.console.getCvar('g_gear').getString()
 def onLoadConfig(self):
     """
     Load plugin configuration
     """
     Poweradminurt41Plugin.onLoadConfig(self)
     self.loadRadioSpamProtection()
 def registerEvents(self):
     """
     Register events needed
     """
     Poweradminurt41Plugin.registerEvents(self)
     self.registerEvent(self.console.getEventID('EVT_CLIENT_RADIO'))
Ejemplo n.º 5
0
 def onLoadConfig(self):
     Poweradminurt41Plugin.onLoadConfig(self)
     self.LoadRadioSpamProtection()
Ejemplo n.º 6
0
 def registerEvents(self):
     Poweradminurt41Plugin.registerEvents(self)
     self.registerEvent(self.console.EVT_CLIENT_RADIO)