diff options
author | Dico200 <dico.karssiens@gmail.com> | 2015-03-15 02:30:33 +0100 |
---|---|---|
committer | Dico200 <dico.karssiens@gmail.com> | 2015-03-15 02:30:33 +0100 |
commit | 017d53928a534090042163e24a92e5c119a04a78 (patch) | |
tree | 94525bdb96e17f2a4c8c69c5d17f2b4910c33133 /pmtoggle.py | |
parent | bab2a6e1987c603075b360989faab3b28e7a3ea8 (diff) |
Add check if chatevent is cancelled in pmtoggle
Diffstat (limited to 'pmtoggle.py')
-rw-r--r-- | pmtoggle.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pmtoggle.py b/pmtoggle.py index d8ae8fb..9e8b17f 100644 --- a/pmtoggle.py +++ b/pmtoggle.py @@ -42,6 +42,8 @@ def on_chat(event): @hook.event("player.PlayerQuitEvent", "normal") def on_quit(event): + if event.isCancelled() + return uuid = uid(event.getPlayer()) if uuid in toggle_dict: del toggle_dict[uuid] |