mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 02:36:32 +01:00
This change meant several changes to the lock and permission functionality, since it becomes important if permissions are assigned on the Player or on their Character (lock functions pperm() and pid() etc check on Player rather than Character). This has the boon of allowing Admins to switch and play/test the game as a "Low access" character as they like. Plenty of bug fixes and adjustments. Migrations should make sure to move over all data properly.
55 lines
1.5 KiB
Python
55 lines
1.5 KiB
Python
"""
|
|
|
|
This is the cmdset for OutOfCharacter (OOC) commands.
|
|
These are stored on the Player object and should
|
|
thus be able to handle getting a Player object
|
|
as caller rather than a Character.
|
|
|
|
"""
|
|
from src.commands.cmdset import CmdSet
|
|
from src.commands.default import help, comms, general, admin
|
|
|
|
class OOCCmdSet(CmdSet):
|
|
"""
|
|
Implements the player command set.
|
|
"""
|
|
|
|
key = "DefaultOOC"
|
|
priority = -5
|
|
|
|
def at_cmdset_creation(self):
|
|
"Populates the cmdset"
|
|
|
|
# general commands
|
|
self.add(general.CmdOOCLook())
|
|
self.add(general.CmdIC())
|
|
self.add(general.CmdOOC())
|
|
self.add(general.CmdEncoding())
|
|
self.add(general.CmdQuit())
|
|
self.add(general.CmdPassword())
|
|
|
|
# help command
|
|
self.add(help.CmdHelp())
|
|
|
|
# admin commands
|
|
self.add(admin.CmdBoot())
|
|
self.add(admin.CmdDelPlayer())
|
|
self.add(admin.CmdNewPassword())
|
|
|
|
# Comm commands
|
|
self.add(comms.CmdAddCom())
|
|
self.add(comms.CmdDelCom())
|
|
self.add(comms.CmdAllCom())
|
|
self.add(comms.CmdChannels())
|
|
self.add(comms.CmdCdestroy())
|
|
self.add(comms.CmdChannelCreate())
|
|
self.add(comms.CmdCset())
|
|
self.add(comms.CmdCBoot())
|
|
self.add(comms.CmdCemit())
|
|
self.add(comms.CmdCWho())
|
|
self.add(comms.CmdCdesc())
|
|
self.add(comms.CmdPage())
|
|
self.add(comms.CmdIRC2Chan())
|
|
self.add(comms.CmdIMC2Chan())
|
|
self.add(comms.CmdIMCInfo())
|
|
self.add(comms.CmdIMCTell())
|