7
7
# Source.Python Admin
8
8
from admin .core .features import PlayerBasedFeature
9
9
from admin .core .frontends .menus import (
10
- main_menu , MenuCommand , MenuSection , PlayerBasedMenuCommand )
10
+ main_menu , MenuSection , PlayerBasedMenuCommand )
11
11
from admin .core .frontends .motd import (
12
12
main_motd , MOTDSection , MOTDPageEntry , PlayerBasedFeaturePage )
13
13
from admin .core .helpers import log_admin_action
14
14
15
15
# Included Plugin
16
16
from .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 )
22
23
from .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 )
28
30
from .strings import plugin_strings
29
31
30
32
@@ -76,6 +78,7 @@ class _KickPage(PlayerBasedFeaturePage):
76
78
menu_section_ip_address = menu_section .add_entry (MenuSection (
77
79
menu_section , plugin_strings ['section_title ip_address_bans' ]))
78
80
81
+ """
79
82
lift_steamid_ban_popup_feature.ban_popup.parent_menu = (
80
83
menu_section_steamid.popup)
81
84
lift_ip_address_ban_popup_feature.ban_popup.parent_menu = (
@@ -88,6 +91,7 @@ class _KickPage(PlayerBasedFeaturePage):
88
91
menu_section_steamid.popup)
89
92
review_ip_address_ban_popup_feature.ban_popup.parent_menu = (
90
93
menu_section_ip_address.popup)
94
+ """
91
95
92
96
menu_section .add_entry (_KickMenuCommand (
93
97
kick_feature ,
@@ -104,43 +108,43 @@ class _KickPage(PlayerBasedFeaturePage):
104
108
menu_section_ip_address ,
105
109
plugin_strings ['popup_title ban_ip_address' ]))
106
110
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 ,
109
113
menu_section_steamid ,
110
114
plugin_strings ['popup_title review_steamid' ]))
111
115
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 ,
114
118
menu_section_ip_address ,
115
119
plugin_strings ['popup_title review_ip_address' ]))
116
120
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 ,
119
123
menu_section_steamid ,
120
124
plugin_strings ['popup_title lift_steamid' ]))
121
125
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 ,
124
128
menu_section_ip_address ,
125
129
plugin_strings ['popup_title lift_ip_address' ]))
126
130
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 ,
129
133
menu_section_steamid ,
130
134
plugin_strings ['popup_title lift_reviewed_steamid' ]))
131
135
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 ,
134
138
menu_section_ip_address ,
135
139
plugin_strings ['popup_title lift_reviewed_ip_address' ]))
136
140
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 ,
139
143
menu_section_steamid ,
140
144
plugin_strings ['popup_title search_bad_bans' ]))
141
145
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 ,
144
148
menu_section_ip_address ,
145
149
plugin_strings ['popup_title search_bad_bans' ]))
146
150
0 commit comments