Skip to content

Allow to hide top-voters which have not played before#1522

Open
BlvckBytes wants to merge 2 commits into
BenCodez:masterfrom
BlvckBytes:hide_top_voter_if_not_played_before
Open

Allow to hide top-voters which have not played before#1522
BlvckBytes wants to merge 2 commits into
BenCodez:masterfrom
BlvckBytes:hide_top_voter_if_not_played_before

Conversation

@BlvckBytes

Copy link
Copy Markdown
Contributor

Hey!

We've recently set up a hologram displaying the names of the top 10 voters per month and ran into the issue that even mistyped names show up on there, which is rather undesirable. This probably doesn't happen on large and active servers, as typo vote-counts are tiny in comparison and fall to the very bottom, but with smaller communities, these votes will show up sooner or later.

Since I'm not familiar with the code-base much, I chose a simple solution, namely to hide entries right before sorting the top-list if the flag is enabled and they have not joined the server before. To keep behaviour unchanged relative to prior builds, the flag is default-false.

Looking forward to feedback of any kind if applicable and would be happy if we can get a feature like this in.

@BenCodez

Copy link
Copy Markdown
Owner

The only issue with this is on proxy setups where the offline player check may not be accurate on each backend server. You could disable allowunjoined to prevent invalid names from coming in.

Could also add a required amount of votes to be on top voter as another solution. But this could work on single server setups, but may get confusing on proxy setups.

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