diff --git a/src/main/java/minevalley/core/api/users/OnlineUser.java b/src/main/java/minevalley/core/api/users/OnlineUser.java index a0e7fe6f..1a11ff23 100644 --- a/src/main/java/minevalley/core/api/users/OnlineUser.java +++ b/src/main/java/minevalley/core/api/users/OnlineUser.java @@ -13,6 +13,7 @@ import minevalley.core.api.regions.utils.PlayerLocation; import minevalley.core.api.users.enums.FractionService; import minevalley.core.api.users.enums.McVersion; +import minevalley.core.api.users.enums.TabListView; import minevalley.core.api.users.enums.TeamRank; import minevalley.core.api.utils.ChatHandler; import minevalley.core.api.utils.ClickableMessage; @@ -114,6 +115,20 @@ public interface OnlineUser extends User { void sendActionBar(@NonNull String message); + /** + * Sends a tab-list view to this user. + * + * @param view view to be sent + */ + void sendTabListView(@NonNull TabListView view); + + /** + * Gets the current tab-list view of this user. + * + * @return current tab-list view + */ + TabListView getTabListView(); + /** * Sends a message to this user like the default player.sendMessage()-method. Without any prefix or color. * diff --git a/src/main/java/minevalley/core/api/users/enums/TabListView.java b/src/main/java/minevalley/core/api/users/enums/TabListView.java new file mode 100644 index 00000000..c572ac75 --- /dev/null +++ b/src/main/java/minevalley/core/api/users/enums/TabListView.java @@ -0,0 +1,12 @@ +package minevalley.core.api.users.enums; + +public enum TabListView { + + DEFAULT, + DISPOSAL, + MAIL, + MEDIC, + POLICE, + TEAM, + SUPPORT +}