add method to clear header and footer

This commit is contained in:
Leymooo
2018-08-25 04:45:10 +03:00
parent 1f8c8dcd94
commit d65e4ed296
3 changed files with 18 additions and 3 deletions

View File

@@ -60,8 +60,13 @@ public interface Player extends CommandSource, InboundConnection, ChannelMessage
* @param header component with header
* @param footer component with footer
*/
void setHeaderAndFooter(@NonNull Component header, @NonNull Component footer);
void setHeaderAndFooter(Component header, Component footer);
/**
* Clears a header and footer for the player
*/
void clearHeaderAndFooter();
/**
* Disconnects the player with the reason
* @param reason component with the reason