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

Poor handling of situations with multiple popups #11

Open
SystemlessDev opened this issue Jul 7, 2021 · 1 comment
Open

Poor handling of situations with multiple popups #11

SystemlessDev opened this issue Jul 7, 2021 · 1 comment

Comments

@SystemlessDev
Copy link

In this situation the user gets both a friend request and a party request. PopupEvents will display these at the same time (over each other) and try to accept both. The server in question would deny you from accepting the party in this case due to typing commands too fast.

A solution for this would be to implement a queue system.
As in first display the friend request and wait for the user to decide. After it has either timed out or the user has accepted, display the party request.

Screenshot of this being an issue:
image

@TheKodeToad
Copy link

TheKodeToad commented Dec 20, 2021

You can use an ArrayDeque for this - every time a popup is consumed, display the next one.

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

2 participants