Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure max-health kit is always reset #888

Merged
merged 1 commit into from
Jun 8, 2021

Conversation

applenick
Copy link
Member

Ensure max-health kit is always reset

This resolves #885, which was introduced due to the reintroduction of the max-health kit in #868.

Solution was simply calling Player#setMaxHealth with the default Bukkit value from MatchPlayer#reset. Also updated the variable name in MaxHealthKit to keep a consistent pattern with WalkSpeedKit.

Tested and works as intended 👍

Signed-off-by: applenick [email protected]

@applenick applenick requested a review from Electroid as a code owner June 7, 2021 21:41
@Pablete1234 Pablete1234 added bug Something isn't working urgent Breaks the plugin labels Jun 8, 2021
@Electroid Electroid merged commit 65f0bf0 into PGMDev:dev Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working urgent Breaks the plugin
Development

Successfully merging this pull request may close these issues.

Max health kit does not get reset properly
3 participants