use list(x) instead of x.tolist()

This commit is contained in:
jomo
2014-06-29 09:19:33 +02:00
parent f00215c5f5
commit 3697e19d79
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ def msg(player, text, usecolor = True, basecolor = None):
# bukkit only works with permissibles that are subscribed to perm
def broadcast(perm, text):
text = colorify(text)
for recipient in server.getOnlinePlayers().tolist() + [server.getConsoleSender()]:
for recipient in list(server.getOnlinePlayers()) + [server.getConsoleSender()]:
(not perm or recipient.hasPermission(perm)) and msg(recipient, text)
def colorify(text):