Skip to content

Commit 2f9dae9

Browse files
author
KirillMysnik
committed
Change command front end. amenu -> "spa menu", ascreen -> "spa motd"
1 parent 39ff195 commit 2f9dae9

File tree

1 file changed

+6
-6
lines changed
  • srcds/addons/source-python/plugins/admin

1 file changed

+6
-6
lines changed

srcds/addons/source-python/plugins/admin/admin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ def unload():
4545
# =============================================================================
4646
# >> MAIN COMMANDS
4747
# =============================================================================
48-
@TypedClientCommand(['amenu'], 'admin.base')
49-
@TypedSayCommand(['!amenu'], 'admin.base')
50-
@TypedSayCommand(['/amenu'], 'admin.base')
48+
@TypedClientCommand(['spa', 'menu'], 'admin.base')
49+
@TypedSayCommand(['!spa', 'menu'], 'admin.base')
50+
@TypedSayCommand(['/spa', 'menu'], 'admin.base') # TODO: Suppress the message
5151
def _admin_command(command_info):
5252
main_menu.popup.send(command_info.index)
5353

5454

55-
@TypedClientCommand(['ascreen'], 'admin.motd')
56-
@TypedSayCommand(['!ascreen'], 'admin.motd')
57-
@TypedSayCommand(['/ascreen'], 'admin.motd')
55+
@TypedClientCommand(['spa', 'motd'], 'admin.base')
56+
@TypedSayCommand(['!spa', 'motd'], 'admin.base')
57+
@TypedSayCommand(['/spa', 'motd'], 'admin.base') # TODO: Suppress the message
5858
def _admin_command(command_info):
5959
MainPage.send(command_info.index)

0 commit comments

Comments
 (0)