Interface ServerEvents.Player.Join.AllowMessage

Enclosing class:
ServerEvents.Player.Join
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerEvents.Player.Join.AllowMessage
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowJoinMessage(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull net.minecraft.network.chat.Component message)
    Called when a player joins a server
  • Method Details

    • allowJoinMessage

      boolean allowJoinMessage(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull net.minecraft.network.chat.Component message)
      Called when a player joins a server
      Parameters:
      player - the player
      message - the join reason
      Returns:
      true if should broadcast the message, otherwise false