Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = 0
- for wordcount in textfile.readlines().split(":"):
- if wordcount == event.getPlayer().getName():
- words += 1
- b2:PlayerName:Location{world=CraftWorld{name=world},x=224.23016231506807,y=71.0,z=190.2291303186236,pitch=31.349741,yaw=-333.30002}
- words = 0
- for wordcount in textfile.read().split(":"):
- if wordcount == event.getPlayer().getName():
- words += 1
- words = 0
- for line in textfile.readlines():
- # I assume that player name position is fixed
- word = line.split(':')[1]
- if word == event.getPlayer().getName():
- words += 1
- from collections import Counter
- counter = Counter([line.split(':') for line in textfile.readlines()])
- counter[event.getPlayer().getName()]
- words = textfile.read().count('PlayerName')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement