I have figured out the pagination service feature, but PaginationBuilder#paddingString() only accepts a string, not a Text. How do i make the padding string include color and formatting?
Also how do i use the tablist interface? I want to customize it with header/footer and more.
doot
February 11, 2016, 8:53pm
2
Currently, the padding takes its color and formatting from title().
Not sure about the second question, hopefully someone else can explain.
Yeah, I want to know how to modify the tab list
Also, do you know how to use pagination and also remove the little arrows at the bottom line?
doot
February 12, 2016, 12:09am
5
The whole point of pagination is to use the arrows. If you have too much content it’ll split it into pages.
How do i do something like this in the chat, then?
Screenshot of mineplex
doot
February 12, 2016, 12:23am
7
Just send the Player a bunch of messages.
I think sending messages would work, i just thought the pagination service could be used for single pieces of text, like shown.
No. The entire point of pagination is for pages.
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
This file has been truncated. show original
OK, i see what the pagination is for, but for the other question: is it possible to modify the tablist of a player with the Tablist interface yet?