Add flush rewrite rules function
Add permalink options
Fix typos
Check if player belongs to leagues to avoid error