Add player list header / footer API.

This commit is contained in:
Minecrell
2014-09-05 16:52:11 +02:00
committed by Thinkofdeath
parent bc48ab3fb8
commit d6b7157c1c
5 changed files with 103 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package net.md_5.bungee.api.connection;
import java.util.Locale;
import net.md_5.bungee.api.Callback;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.config.ServerInfo;
import java.util.UUID;
@@ -121,4 +122,23 @@ public interface ProxiedPlayer extends Connection, CommandSender
* @return the locale
*/
Locale getLocale();
/**
* Set the header and footer displayed in the tab player list.
* @param header The header for the tab player list, null to clear it.
* @param footer The footer for the tab player list, null to clear it.
*/
void setTabHeader(BaseComponent header, BaseComponent footer);
/**
* Set the header and footer displayed in the tab player list.
* @param header The header for the tab player list, null to clear it.
* @param footer The footer for the tab player list, null to clear it.
*/
void setTabHeader(BaseComponent[] header, BaseComponent[] footer);
/**
* Clears the header and footer displayed in the tab player list.
*/
void resetTabHeader();
}