Add colon in pmtoggle

This commit is contained in:
Dico200
2015-03-15 02:30:52 +01:00
committed by jomo
parent a24c7092f7
commit ad70989a40

View File

@@ -32,6 +32,8 @@ def on_toggle_message_command(sender, args):
@hook.event("player.AsyncPlayerChatEvent", "normal")
def on_chat(event):
if event.isCancelled():
return
player = event.getPlayer()
uuid = uid(player)
if uuid in toggle_dict:
@@ -42,8 +44,6 @@ 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]