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

Page enumeration for world list command #2

Open
Palmidence opened this issue Jun 22, 2017 · 0 comments
Open

Page enumeration for world list command #2

Palmidence opened this issue Jun 22, 2017 · 0 comments

Comments

@Palmidence
Copy link

Palmidence commented Jun 22, 2017

The issue

Currently, there is a very large amount of worlds on the build server that uses this plugin. For servers using Scaffold, it clutters the chat to the point where you may not be able to scroll up past a certain point and read the list of all of the worlds due to Minecraft's limitations.

Not including different chat window sizes that users choose, This will leave out worlds that go in the alphabetical order they're meant to be in, because they get cut off. Not only this, but it's hard to read each one at a single time and it shouldn't just come out in one little string in chat.

The fix

Add a way to navigate worlds via pages. Rather than output a string of the worlds, generate a page for a certain amount of worlds. This way, navigation is much more efficient. A command like /worlds list 1 would display alphabetically the first page, and so forth.

https://hub.spigotmc.org/javadocs/spigot/org/bukkit/util/ChatPaginator.html

Image

Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant