Add new ClientSettings API

Add the new API introducted with the ClientSettings packet changes in 1.18
This commit is contained in:
FivePB
2021-11-25 17:04:10 +01:00
parent 7cc40f8fea
commit 7ed4f4c03a
2 changed files with 14 additions and 0 deletions

View File

@@ -57,6 +57,16 @@ public interface PlayerSettings {
*/
MainHand getMainHand();
/**
* Returns whether the client explicitly allows listing on the
* {@link com.velocitypowered.api.proxy.player.TabList} or not in
* anonymous TabList mode.
* This feature was introduced in 1.18.
*
* @return whether or not the client explicitly allows listing. Always false on older clients.
*/
boolean isClientListingAllowed();
enum ChatMode {
SHOWN,
COMMANDS_ONLY,