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

Fix mistake in PR #4226 #4228

Merged
merged 9 commits into from
Jun 12, 2021
Merged

Fix mistake in PR #4226 #4228

merged 9 commits into from
Jun 12, 2021

Conversation

DebugOk
Copy link
Contributor

@DebugOk DebugOk commented Jun 12, 2021

Information

This PR fixes a mistake in PR #4226.

Details

Proposed fix:
Actually use the correct '>' instead of '<='

Having <= will hide any players with a balance greater then 0, this is the opposite of what was intended with the patch

Environments tested:

OS: Linux 4.15.0-88-generic

Java version: Java 11 (OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04)

  • Most recent Paper version (1.16.5, git-Paper-776)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:
N\A

DebugOk and others added 9 commits June 12, 2021 03:23
I added that because I thought it was needed.

Spoiler alert, it wasn't.
Having it set to less that or equal to breaks what it was meant to do

Instead of hiding players with a balance of 0 it only shows players with a balance of 0
@JRoy JRoy merged commit 65b8020 into EssentialsX:2.x Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants