77# Source.Python Admin
88from admin .core .features import PlayerBasedFeature
99from admin .core .frontends .menus import (
10- main_menu , MenuCommand , MenuSection , PlayerBasedMenuCommand )
10+ main_menu , MenuSection , PlayerBasedMenuCommand )
1111from admin .core .frontends .motd import (
1212 main_motd , MOTDSection , MOTDPageEntry , PlayerBasedFeaturePage )
1313from admin .core .helpers import log_admin_action
1414
1515# Included Plugin
1616from .bans .ip_address import (
17- ban_ip_address_feature , banned_ip_address_manager ,
18- BanIPAddressMenuCommand , BanIPAddressPage ,
19- lift_any_ip_address_ban_popup_feature , lift_ip_address_ban_popup_feature ,
20- LiftIPAddressBanPage , review_ip_address_ban_popup_feature ,
21- ReviewIPAddressBanPage , search_bad_ip_address_bans_popup_feature )
17+ ban_ip_address_feature , banned_ip_address_manager , BanIPAddressMenuCommand ,
18+ BanIPAddressPage , lift_ip_address_ban_feature ,
19+ LiftAnyIPAddressBanMenuCommand , LiftIPAddressBanPage ,
20+ LiftMyIPAddressBanMenuCommand , remove_bad_ip_address_ban_feature ,
21+ RemoveBadIPAddressBanMenuCommand , review_ip_address_ban_feature ,
22+ ReviewIPAddressBanMenuCommand , ReviewIPAddressBanPage )
2223from .bans .steamid import (
23- ban_steamid_feature , banned_steamid_manager ,
24- BanSteamIDMenuCommand , BanSteamIDPage ,
25- lift_any_steamid_ban_popup_feature , lift_steamid_ban_popup_feature ,
26- LiftSteamIDBanPage , review_steamid_ban_popup_feature ,
27- ReviewSteamIDBanPage , search_bad_steamid_bans_popup_feature )
24+ ban_steamid_feature , banned_steamid_manager , BanSteamIDMenuCommand ,
25+ BanSteamIDPage , lift_steamid_ban_feature ,
26+ LiftAnySteamIDBanMenuCommand , LiftSteamIDBanPage ,
27+ LiftMySteamIDBanMenuCommand , remove_bad_steamid_ban_feature ,
28+ RemoveBadSteamIDBanMenuCommand , review_steamid_ban_feature ,
29+ ReviewSteamIDBanMenuCommand , ReviewSteamIDBanPage )
2830from .strings import plugin_strings
2931
3032
@@ -76,6 +78,7 @@ class _KickPage(PlayerBasedFeaturePage):
7678menu_section_ip_address = menu_section .add_entry (MenuSection (
7779 menu_section , plugin_strings ['section_title ip_address_bans' ]))
7880
81+ """
7982lift_steamid_ban_popup_feature.ban_popup.parent_menu = (
8083 menu_section_steamid.popup)
8184lift_ip_address_ban_popup_feature.ban_popup.parent_menu = (
@@ -88,6 +91,7 @@ class _KickPage(PlayerBasedFeaturePage):
8891 menu_section_steamid.popup)
8992review_ip_address_ban_popup_feature.ban_popup.parent_menu = (
9093 menu_section_ip_address.popup)
94+ """
9195
9296menu_section .add_entry (_KickMenuCommand (
9397 kick_feature ,
@@ -104,43 +108,43 @@ class _KickPage(PlayerBasedFeaturePage):
104108 menu_section_ip_address ,
105109 plugin_strings ['popup_title ban_ip_address' ]))
106110
107- menu_section_steamid .add_entry (MenuCommand (
108- review_steamid_ban_popup_feature ,
111+ menu_section_steamid .add_entry (ReviewSteamIDBanMenuCommand (
112+ review_steamid_ban_feature ,
109113 menu_section_steamid ,
110114 plugin_strings ['popup_title review_steamid' ]))
111115
112- menu_section_ip_address .add_entry (MenuCommand (
113- review_ip_address_ban_popup_feature ,
116+ menu_section_ip_address .add_entry (ReviewIPAddressBanMenuCommand (
117+ review_ip_address_ban_feature ,
114118 menu_section_ip_address ,
115119 plugin_strings ['popup_title review_ip_address' ]))
116120
117- menu_section_steamid .add_entry (MenuCommand (
118- lift_steamid_ban_popup_feature ,
121+ menu_section_steamid .add_entry (LiftMySteamIDBanMenuCommand (
122+ lift_steamid_ban_feature ,
119123 menu_section_steamid ,
120124 plugin_strings ['popup_title lift_steamid' ]))
121125
122- menu_section_ip_address .add_entry (MenuCommand (
123- lift_ip_address_ban_popup_feature ,
126+ menu_section_ip_address .add_entry (LiftMyIPAddressBanMenuCommand (
127+ lift_ip_address_ban_feature ,
124128 menu_section_ip_address ,
125129 plugin_strings ['popup_title lift_ip_address' ]))
126130
127- menu_section_steamid .add_entry (MenuCommand (
128- lift_any_steamid_ban_popup_feature ,
131+ menu_section_steamid .add_entry (LiftAnySteamIDBanMenuCommand (
132+ lift_steamid_ban_feature ,
129133 menu_section_steamid ,
130134 plugin_strings ['popup_title lift_reviewed_steamid' ]))
131135
132- menu_section_ip_address .add_entry (MenuCommand (
133- lift_any_ip_address_ban_popup_feature ,
136+ menu_section_ip_address .add_entry (LiftAnyIPAddressBanMenuCommand (
137+ lift_ip_address_ban_feature ,
134138 menu_section_ip_address ,
135139 plugin_strings ['popup_title lift_reviewed_ip_address' ]))
136140
137- menu_section_steamid .add_entry (MenuCommand (
138- search_bad_steamid_bans_popup_feature ,
141+ menu_section_steamid .add_entry (RemoveBadSteamIDBanMenuCommand (
142+ remove_bad_steamid_ban_feature ,
139143 menu_section_steamid ,
140144 plugin_strings ['popup_title search_bad_bans' ]))
141145
142- menu_section_ip_address .add_entry (MenuCommand (
143- search_bad_ip_address_bans_popup_feature ,
146+ menu_section_ip_address .add_entry (RemoveBadIPAddressBanMenuCommand (
147+ remove_bad_ip_address_ban_feature ,
144148 menu_section_ip_address ,
145149 plugin_strings ['popup_title search_bad_bans' ]))
146150
0 commit comments