@@ -42,7 +42,7 @@ def execute(self, client):
4242 raise NotImplementedError
4343
4444
45- class PlayerBasedFeature (BaseFeature ):
45+ class BasePlayerBasedFeature (BaseFeature ):
4646 feature_abstract = True
4747
4848 # Allow clients to execute this feature on themselves?
@@ -52,14 +52,6 @@ class PlayerBasedFeature(BaseFeature):
5252 # permissions to execute this command, too?
5353 allow_execution_on_equal_priority = False
5454
55- def execute (self , client , player ):
56- """Execute the feature on the given player.
57-
58- :param client: Client that performs the action.
59- :param player: Player to perform the action on.
60- """
61- raise NotImplementedError
62-
6355 def filter (self , client , player ):
6456 """Determine if a client is able to execute the feature on the given
6557 player.
@@ -77,3 +69,15 @@ def filter(self, client, player):
7769
7870 another_client = clients [player .index ]
7971 return not another_client .has_permission (self .flag )
72+
73+
74+ class PlayerBasedFeature (BasePlayerBasedFeature ):
75+ feature_abstract = True
76+
77+ def execute (self , client , player ):
78+ """Execute the feature on the given player.
79+
80+ :param client: Client that performs the action.
81+ :param player: Player to perform the action on.
82+ """
83+ raise NotImplementedError
0 commit comments