This problem occurs when using the Minecraft level formula for levels 17 to 31. So, for example, if you have 20 levels and 0 points, using the following formula ((2.5*level^2)+(40.5*level)+360) you get 550 as a result. So, theoretically, by using the following command /xp add @s 550 points, you should get 20 levels, but actually the executor gets 20 levels-1 point.
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-123270, which is a report that has not been resolved yet.
If you want, you can upvote the parent ticket, and enable watching to receive any updates about it - if you believe you have any information that may be important for this issue, please leave a comment on the parent. Please also use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord