The rules in short
Mojang's EULA and its usage guidelines for servers set the limits. In broad terms: you may charge for access, accept donations and sell cosmetic items, but you must not sell items or perks that give a gameplay advantage over other players. Read the current official guidelines yourself before building a store, because the details matter and change over time.
Generally acceptable
- Cosmetics: hats, particles, pets, chat colours, titles
- Access to the server, charged the same to everyone
- Donations, with nothing that affects gameplay in return
- Supporter ranks with only cosmetic or convenience perks that do not affect gameplay balance
Not acceptable
- Items, gear, currency or boosts that give an edge in gameplay
- Paid ranks with powerful commands such as flight in survival or extra kits
- Using Mojang or Minecraft branding in a way that suggests your server is official
Building a store players accept
Be transparent about what money pays for, such as hosting and development. Keep prices reasonable, list exactly what each item does, and never let purchases affect fairness. Communities that feel squeezed leave; communities that feel they are supporting something they love keep paying.