def getServerStat(self, server, stat):
# Make sure our server exists in the list
self.checkServer(server)
# Check for our server
for x in self.serverDict["Servers"]:
if x["ID"] == server.id:
# Found the server, check for the stat
if stat in x:
return x[stat]
else:
return None
# Server was not located - return None
return None
# Set the provided stat
评论列表
文章目录