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

Docs - contradicting description and example #7461

Open
1 task done
MinecraftMan1013number2 opened this issue Jan 16, 2025 · 3 comments
Open
1 task done

Docs - contradicting description and example #7461

MinecraftMan1013number2 opened this issue Jan 16, 2025 · 3 comments

Comments

@MinecraftMan1013number2

Skript/Server Version

N/A

Bug Description

In the description of this expression, it says "Asking for this does not remove the element from the queue." but in the example, it shows adding 2 elements, broadcasting them both, and the queue being empty.

Expected Behavior

N/A

Steps to Reproduce

N/A

Errors or Screenshots

Image
https://skripthub.net/docs/?id=12828

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@ChicknTurtle
Copy link

Getting start or end of the queue doesn't remove from the queue. In the example, that is a different expression.

@MinecraftMan1013number2
Copy link
Author

Ah I see, I had a brain fart. I think my logic was that start and first element of are basically the same, so I would expect the same behavior from them.

@Moderocky
Copy link
Member

Ah I see, I had a brain fart. I think my logic was that start and first element of are basically the same, so I would expect the same behavior from them.

Well I don't think it's your fault, we might be able to make the documentation clearer if you have any suggestions.

Basically, start... and end... reference the beginning and the end of the queue (rather than, specifically, the first and last elements) so you can add stuff to the start and end, or remove stuff from the start and the end.

If you look in the examples I provided a few little intros to queues that might be helpful :)

As they're still an experiment, you're always welcome to give feedback so we can improve things.

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