I want to make an XP shop but I'm not sure about how to detect if people have sufficient XP Levels.
Can anyone help me?
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.Sign up to join this community
You can test for player's levels using the
lm= arguments in the target selector.
For example, if I am looking for all players with at 5 or more levels, I would use:
or, all players that have 3 or more levels of EXP, but equal to/less than 8:
or, all players that have 5 or less levels:
or, exactly 8 levels:
as 8 will be true for both
l but 7 will become false for
lm and 9 would be false for
l because a selector will only select players IF all the arguments are true.
See the wiki for more information.