Add check if chatevent is cancelled in pmtoggle

This commit is contained in:
Dico200
2015-03-15 02:30:33 +01:00
parent bab2a6e198
commit 017d53928a

View File

@@ -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]