Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def __getitem__(self, item):
raise KeyError(
'"{0}" is neither a team number nor an alias.'.format(item))

def clear(self):
for x in self.values():
x.clear()


class WeaponRestrictionHandler(AutoUnload):
"""Class used to handle player and team restrictions."""
Expand All @@ -203,8 +207,8 @@ def __init__(self):

def clear(self):
"""Remove all team and player restrictions."""
self.team_restrictions.clear()
self.player_restrictions.clear()
self.team_restrictions.clear()

def add_player_restrictions(self, player, *weapons):
"""Add the weapons to the player's restriction set.
Expand Down