Skip to content

Commit

Permalink
feat: add tab list viewing system (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
FourtySeven047 authored Nov 3, 2024
1 parent 09684bc commit 72cfa83
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/minevalley/core/api/users/OnlineUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/minevalley/core/api/users/enums/TabListView.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package minevalley.core.api.users.enums;

public enum TabListView {

DEFAULT,
DISPOSAL,
MAIL,
MEDIC,
POLICE,
TEAM,
SUPPORT
}

0 comments on commit 72cfa83

Please sign in to comment.