Skip to content

Commit 19bbdde

Browse files
author
KirillMysnik
committed
Added command frontend support to "Admin Life Management" included plugin
1 parent 497d00d commit 19bbdde

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# Source.Python Admin
99
from admin.core.features import PlayerBasedFeature
10+
from admin.core.frontends.commands import PlayerBasedFeatureCommand
1011
from admin.core.frontends.menus import (
1112
main_menu, MenuSection, PlayerBasedMenuCommand)
1213
from admin.core.frontends.motd import (
@@ -100,6 +101,13 @@ def on_error(self, error):
100101
_ws_resurrect_pages.remove(self)
101102

102103

104+
# =============================================================================
105+
# >> COMMAND FRONTEND
106+
# =============================================================================
107+
PlayerBasedFeatureCommand("slay", slay_feature)
108+
PlayerBasedFeatureCommand("resurrect", resurrect_feature)
109+
110+
103111
# =============================================================================
104112
# >> MENU ENTRIES
105113
# =============================================================================

0 commit comments

Comments
 (0)