def METHOD_NAME(self, team):
    if team.spectator and kick.get() and kick_time.get() > 0:
        if self.rights is None or (not self.admin and not self.rights.specpower):  # not an admin
            # this check is necessary as you can join spectator from
            # being a spectator
            if self.spec_check is None or not self.spec_check.active():
                self.send_chat(
                    'Warning! Spectators are kicked after %s seconds!' %
                    (kick_time.get()))
                time = ceil((kick_time.get() / 4) * 3)
                self.spec_check = reactor.callLater(
                    time, self.check_spec_time, 1)
    elif not team.spectator:
        if self.spec_check is not None and self.spec_check.active():
            self.spec_check.cancel()
            self.spec_check = None
    return connection.METHOD_NAME(self, team)