Add check if chatevent is cancelled in pmtoggle
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user