Added a simple quell command to contrib/ for showing how to use a command to launch other commands (in this case with a lower permission than you normally do (including bypassing superuser status).
This commit is contained in:
parent
e7b46c89b4
commit
b6303808ec
3 changed files with 92 additions and 7 deletions
|
|
@ -22,7 +22,8 @@ from src.commands.cmdset import CmdSet
|
|||
from src.commands.default import cmdset_default, cmdset_unloggedin, cmdset_ooc
|
||||
from game.gamesrc.commands.basecommand import Command
|
||||
|
||||
from contrib import menusystem, lineeditor
|
||||
#from contrib import menusystem, lineeditor
|
||||
from contrib import misc_commands
|
||||
|
||||
class DefaultCmdSet(cmdset_default.DefaultCmdSet):
|
||||
"""
|
||||
|
|
@ -48,7 +49,7 @@ class DefaultCmdSet(cmdset_default.DefaultCmdSet):
|
|||
#
|
||||
#self.add(menusystem.CmdMenuTest())
|
||||
#self.add(lineeditor.CmdEditor())
|
||||
|
||||
self.add(misc_commands.CmdQuell())
|
||||
|
||||
class UnloggedinCmdSet(cmdset_unloggedin.UnloggedinCmdSet):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue