Negative numbers in ExprLevel causes console error #4804
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
Experience level must not be negative (-1)
This is causing runtime execution of the rest of the code to stop, so this is low priority rather than lowest.
I'm surprised this didn't show up before. Spigot must have added a Precondition check to it sometime recently.
Expected Behavior
There should not be a console error, rather just not attempt to set the level of the player to a negative number.
Steps to Reproduce
Set the level of a player to any negative number.
Errors or Screenshots
The text was updated successfully, but these errors were encountered: