Skip to content

Commit

Permalink
Add DisplayProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Feb 15, 2024
1 parent d0a37f1 commit a17d2b1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,29 @@ public interface DisplayProvider {
*
* @return The {@link Component} representing the current tab list suffix or null if none is set.
*/
Component getTabSuffix();
Component getTabSuffix(Player player);

/**
* Retrieves the current suffix set for players in chat messages.
*
* @return The {@link Component} representing the current chat message suffix or null if none is set.
*/
Component getChatSuffix();
Component getChatSuffix(Player player);

/**
* Retrieves the current custom prefix set for players in the tab list. If you want to get the prefix of the
* permission group the player is in, use {@link RealmPermissionProvider#primaryRealmGroup(UUID)} for that.
*
* @return The {@link Component} representing the current tab list prefix or null if none is set.
*/
Component getCustomTabPrefix();
Component getCustomTabPrefix(Player player);

/**
* Retrieves the current custom prefix set for players in chat messages. If you want to get the prefix of the
* permission group the player is in, use {@link RealmPermissionProvider#primaryRealmGroup(UUID)} for that.
*
* @return The {@link Component} representing the current chat message prefix or null if none is set.
*/
Component getCustomChatPrefix();
Component getCustomChatPrefix(Player player);

}

0 comments on commit a17d2b1

Please sign in to comment.