aboutsummaryrefslogtreecommitdiff
path: root/server/commands.py
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-09-03 15:55:34 +0200
committerCerapter <cerap@protonmail.com>2018-09-03 15:55:34 +0200
commitbecf58dd4f9432364a64dc7af006b3938245127b (patch)
tree90eea8f6e0cf4da3a3cf3fb2d9285b065e31d7b4 /server/commands.py
parente45e138fb5c8856e3047b5c60c957782a90f5598 (diff)
Area list added.
- Accessible with the ingame A/M button, or by `/switch_am`. - The music list now only lists music. - The area list lists the areas. - It describes general area properties (playercount, status, CM, locked). - Automatically updates as these change. - Clicking on an area behaves the same way as clicking on an area in the music list previously did.
Diffstat (limited to 'server/commands.py')
-rw-r--r--server/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/commands.py b/server/commands.py
index 0bd9c556..134b685a 100644
--- a/server/commands.py
+++ b/server/commands.py
@@ -691,6 +691,7 @@ def ooc_cmd_cm(client, arg):
client.is_cm = True
if client.area.evidence_mod == 'HiddenCM':
client.area.broadcast_evidence_list()
+ client.server.area_manager.send_arup_cms()
client.area.send_host_message('{} is CM in this area now.'.format(client.get_char_name()))
def ooc_cmd_uncm(client, arg):
@@ -700,6 +701,7 @@ def ooc_cmd_uncm(client, arg):
client.area.blankposting_allowed = True
if client.area.is_locked:
client.area.unlock()
+ client.server.area_manager.send_arup_cms()
client.area.send_host_message('{} is no longer CM in this area.'.format(client.get_char_name()))
else:
raise ClientError('You cannot give up being the CM when you are not one')
@@ -718,6 +720,7 @@ def ooc_cmd_area_lock(client, arg):
client.send_host_message('Area is already locked.')
if client.is_cm:
client.area.is_locked = True
+ client.server.area_manager.send_arup_lock()
client.area.send_host_message('Area is locked.')
for i in client.area.clients:
client.area.invite_list[i.id] = None