remove redundant loop
This commit is contained in:
@@ -47,7 +47,6 @@ def on_quit(event):
|
||||
uuid = uid(event.getPlayer())
|
||||
if uuid in toggle_dict:
|
||||
del toggle_dict[uuid]
|
||||
for pid in toggle_dict:
|
||||
if toggle_dict[pid] == uuid:
|
||||
if toggle_dict.get(pid) == uuid:
|
||||
del toggle_dict[pid]
|
||||
msg(Bukkit.getPlayer(juuid(pid)), "%s &cwent off so your Private Message Toggle has been disabled!" % Bukkit.getPlayer(juuid(uuid)).getDisplayName())
|
||||
Reference in New Issue
Block a user