Class PlayerListUtils

java.lang.Object
org.geysermc.geyser.util.PlayerListUtils

public class PlayerListUtils extends Object
  • Constructor Details

    • PlayerListUtils

      public PlayerListUtils()
  • Method Details

    • batchSendPlayerList

      public static void batchSendPlayerList(GeyserSession session, List<org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry> entries, org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Action action)
      Sends a player list packet to the client with the given entries. If there are too many provided entries, multiple packets will be sent.
      Parameters:
      session - the Geyser session
      entries - the list of player list packet entries to send
      action - the action to perform with the player list