mirror of
https://github.com/evennia/evennia.git
synced 2026-04-17 21:59:06 +02:00
Added hooks at_access_success and at_access_failure to allow for custom messaging for certain lock errors. Resolves Issue 311.
This commit is contained in:
parent
ee7a175bf4
commit
52af816977
2 changed files with 35 additions and 5 deletions
|
|
@ -98,6 +98,9 @@ class ExampleObject(Object):
|
|||
at_server_reload() - called before server is reloaded
|
||||
at_server_shutdown() - called just before server is fully shut down
|
||||
|
||||
at_access_success(accessing_obj, access_type) - called if an lock access check succeeded on this object
|
||||
at_access_failure(accessing_obj, access_type) - called if an lock access check failed on this object
|
||||
|
||||
at_before_move(destination) - called just before moving object to the destination. If returns False, move is cancelled.
|
||||
announce_move_from(destination) - called in old location, just before move, if obj.move_to() has quiet=False
|
||||
announce_move_to(source_location) - called in new location, just after move, if obj.move_to() has quiet=False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue