Commit 807e5c46 authored by Big Bad Waffle's avatar Big Bad Waffle

added an event that fires when a player leaves a zone

parent 55e745b2
......@@ -203,9 +203,12 @@ module.exports = {
if (obj.auth)
await obj.auth.doSave();
if (obj.player)
if (obj.player) {
obj.fireEvent('beforeRezone');
eventEmitter.emit('onAfterPlayerLeaveZone', obj);
}
obj.destroyed = true;
if (msg.callbackId) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment