Interface AdaptedServerPing

All Superinterfaces:
Handle

public interface AdaptedServerPing extends Handle
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Temporarly adds one player to the player count
    net.kyori.adventure.text.Component
    Gets the component of the description (aka MOTD)
    long
    Returns an epoch timestamp of when this ping was sent.
    int
    Gets the maximum number of players that can join.
    Gets the description (aka MOTD) stripped of any color or styling
    int
    Gets the number of players currently online

    Methods inherited from interface us.ajg0702.queue.api.util.Handle

    getHandle
  • Method Details

    • getDescriptionComponent

      net.kyori.adventure.text.Component getDescriptionComponent()
      Gets the component of the description (aka MOTD)
      Returns:
      A compoent of the description
    • getPlainDescription

      String getPlainDescription()
      Gets the description (aka MOTD) stripped of any color or styling
      Returns:
      The description, but no colors
    • getPlayerCount

      int getPlayerCount()
      Gets the number of players currently online
      Returns:
      The number of players online
    • getMaxPlayers

      int getMaxPlayers()
      Gets the maximum number of players that can join.
      Returns:
      The maximum number of players that can join
    • addPlayer

      void addPlayer()
      Temporarly adds one player to the player count
    • getFetchedTime

      long getFetchedTime()
      Returns an epoch timestamp of when this ping was sent.
      Returns:
      A long of an epoch timestamp