Class PlayerClientBrandEvent

java.lang.Object
com.velocitypowered.api.event.player.PlayerClientBrandEvent

public final class PlayerClientBrandEvent extends Object
Fired when a Player sends the minecraft:brand plugin message. Velocity will not wait on the result of this event.
  • Constructor Details

    • PlayerClientBrandEvent

      public PlayerClientBrandEvent(Player player, String brand)
      Creates a new instance.
      Parameters:
      player - the Player of the sent client brand
      brand - the sent client brand
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who sent the client brand.
      Returns:
      the player
    • getBrand

      public String getBrand()
      Gets the brand string sent by the client.
      Returns:
      the client brand
    • toString

      public String toString()
      Overrides:
      toString in class Object