Open SjsolisZXA opened 7 years ago
@SjsolisZXA What is your expected result of the clear()
call.
Remove only all player entries or remove headers/footers as well?
A reset()
method would be nice as well.
(Reset the TabList to a vanilla TabList
showing online players)
@ST-DDT My expected result would be to clear all entries in the Tab List while keeping the footer and header. Would your suggested reset()
method restore the Tab List to how it looks like when you log into the server?
Yes.
In that case, I think both methods would be great.
.clearEntries() over .clear(), if it's only clearing the entries. .reset()
Bumping up report.
Hello, I'd like to suggest an improvement for TabLists. If a method called
.clear()
could be added when one callsplayer.getTabList
, it would be greatly appreciated. It would allow programmers such as myself to easily clear a TabList.