mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
1.6 KiB
1.6 KiB
Legacy Comms-commands
Contribution - Griatch 2021
In Evennia 1.0, the old Channel commands (originally inspired by MUX) were
replaced by the single channel command that performs all these function.
That command is still required to talk on channels. This contrib (extracted
from Evennia 0.9.5) reuses the channel-management of the base Channel command
but breaks out its functionality into separate Commands with MUX-familiar names.
allcom-channel/allandchanneladdcom-channel/alias,channel/subandchannel/unmutedelcom-channel/unalias,alias/unsubandchannel/mutecboot-channel/boot(channel/banand/unbannot supported)cwho-channel/whoccreate-channel/createcdestroy-channel/destroyclock-channel/lockcdesc-channel/desc
Installation
- Import the
CmdSetLegacyCommscmdset from this module intomygame/commands/default_cmdsets.py - Add it to the CharacterCmdSet's
at_cmdset_creationmethod (see below). - Reload the server.
# in mygame/commands/default_cmdsets.py
# ..
from evennia.contrib.base_systems.mux_comms_cmds import CmdSetLegacyComms # <----
class CharacterCmdSet(default_cmds.CharacterCmdSet):
# ...
def at_cmdset_creation(self):
# ...
self.add(CmdSetLegacyComms) # <----
Note that you will still be able to use the channel command; this is actually
still used under the hood by these commands.
This document page is generated from evennia/contrib/base_systems/mux_comms_cmds/README.md. Changes to this
file will be overwritten, so edit that file rather than this one.