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

Players can bypass requirements by temporarily going AFK #100

Open
Stellarain opened this issue Mar 21, 2022 · 2 comments
Open

Players can bypass requirements by temporarily going AFK #100

Stellarain opened this issue Mar 21, 2022 · 2 comments

Comments

@Stellarain
Copy link

Players that are both sleeping and AFK will count towards the number of players sleeping, but not towards the total number of players (for calculating percentages, etc.), allowing, for instance, a minority of players to skip night even if a majority of players is required to sleep.

This can easily be reproduced by entering a bed and then using EssentialX's /afk command.

Furthermore, it would be nice to have a configurable option that allows the percentage to be calculated based on the highest number of online, non-AFK players recently online (say, the last 3 minutes, or a configurable option), in order to prevent players from intentionally going AFK or disconnecting in order to inflate the percentage of sleeping players -- I may be able to submit a pull request for this, time permitting, if you'd like.

@josephrooks
Copy link

I'd really like to see this @Stellarain - I would like players to be able to indicate they're AFK if they're stepping out for a few minutes, but do not want them to be able to cheese the use of beds in this way or otherwise by just using the /afk command to avoid needing to get into a bed at all.

@CamoMano
Copy link

CamoMano commented Jun 17, 2022

Alternatively, an option to ignore the essentials AFK and use the built in one could work.

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

No branches or pull requests

3 participants