Skip to content

How do I remove default Character commands - but also keep Admin commands #3424

Discussion options

You must be logged in to vote

You never change the evennia core package.

As outlined in the beginner tutorials, you make your changes in mygame/commands/default_cmdsets.py:

# in mygame/commands/default_cmdsets.py 

# if you have your own replacements in mygame/commands/mycommands.py
from commands import mycommands

class CharacterCmdSet(default_cmds.CharacterCmdSet):
    """
    The `CharacterCmdSet` contains general in-game commands like `look`,
    `get`, etc available on in-game Character objects. It is merged with
    the `AccountCmdSet` when an Account puppets a Character.
    """
 
    key = "DefaultCharacter"
 
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super().

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@RodRitter
Comment options

Answer selected by RodRitter
Comment options

You must be logged in to vote
1 reply
@InspectorCaracal
Comment options

Comment options

You must be logged in to vote
1 reply
@InspectorCaracal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants