Make more commands honor settings.COMMAND_DEFAULT_CLASS
As suggested in mygame\commands\command.py, I'm overriding COMMAND_DEFAULT_CLASS in settings.py to try to make sweeping changes. Having certain commands inherit directly from the base Command class thwarts this. The only difference between Command and MuxCommand is that MuxCommand defines some custom parsing, but that's overridden by these commands anyway, so there should be no practical difference. The import change in game_template/commands/command.py was required to fix an exception on server reload caused by the channelhandler.py change (I guess something to do with import order?)
This commit is contained in:
parent
f39dcb8786
commit
9923a0763d
4 changed files with 9 additions and 8 deletions
|
|
@ -5,7 +5,7 @@ Commands describe the input the account can do to the game.
|
|||
|
||||
"""
|
||||
|
||||
from evennia import Command as BaseCommand
|
||||
from evennia.commands.command import Command as BaseCommand
|
||||
|
||||
# from evennia import default_cmds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue