File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
addons/source-python/packages/source-python/weapons Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,10 @@ def __getitem__(self, item):
190190 raise KeyError (
191191 '"{0}" is neither a team number nor an alias.' .format (item ))
192192
193+ def clear (self ):
194+ for x in self .values ():
195+ x .clear ()
196+
193197
194198class WeaponRestrictionHandler (AutoUnload ):
195199 """Class used to handle player and team restrictions."""
@@ -203,8 +207,8 @@ def __init__(self):
203207
204208 def clear (self ):
205209 """Remove all team and player restrictions."""
206- self .team_restrictions .clear ()
207210 self .player_restrictions .clear ()
211+ self .team_restrictions .clear ()
208212
209213 def add_player_restrictions (self , player , * weapons ):
210214 """Add the weapons to the player's restriction set.
You can’t perform that action at this time.
0 commit comments