Interface RemotePlayer

All Known Implementing Classes:
CachedPlayer

public interface RemotePlayer
RemotePlayer Layout Class
  • Method Details

    • get

      Get Local Player
      Returns:
      Local Player (or null when not local)
    • getUniqueId

      UUID getUniqueId()
      Get the UUID of this player.
      Returns:
      the UUID
    • getName

      String getName()
      Get the unique name of this player.
      Returns:
      the player's username
    • getAddress

      InetSocketAddress getAddress()
      Gets the remote address of this connection.
      Returns:
      the remote address
    • getProxyName

      String getProxyName()
      Gets the name of the proxy this player is connected to.
      Returns:
      the name of the proxy this player is connected to
    • getServerName

      String getServerName()
      Gets the name of the server this player is connected to.
      Returns:
      the name of the server this player is connected to
    • getServer

      ServerInfo getServer()
      Gets the server this player is connected to.
      Returns:
      the server this player is connected to
    • broadcastMessage

      static void broadcastMessage(String... messages)
      Sends messages to all players
      Parameters:
      messages - Messages to send
    • broadcastMessage

      static void broadcastMessage(String message, IntConsumer response)
      Sends a message to all players
      Parameters:
      message - Message to send
      response - Success Status
    • broadcastMessage

      static void broadcastMessage(String[] messages, IntConsumer response)
      Sends messages to all players
      Parameters:
      messages - Messages to send
      response - Success Status
    • sendMessage

      default void sendMessage(String... messages)
      Sends messages to this player
      Parameters:
      messages - Messages to send
    • sendMessage

      default void sendMessage(String message, IntConsumer response)
      Sends a message to this player
      Parameters:
      message - Message to send
      response - Success Status
    • sendMessage

      default void sendMessage(String[] messages, IntConsumer response)
      Sends messages to this player
      Parameters:
      messages - Messages to send
      response - Success Status
    • sendMessage

      static void sendMessage(UUID[] players, String... messages)
      Sends messages to these players
      Parameters:
      players - Players to select
      messages - Messages to send
    • sendMessage

      static void sendMessage(UUID[] players, String message, IntConsumer response)
      Sends a message to these players
      Parameters:
      players - Players to select
      message - Message to send
      response - Success Status
    • sendMessage

      static void sendMessage(UUID[] players, String[] messages, IntConsumer response)
      Sends messages to these players
      Parameters:
      players - Players to select
      messages - Messages to send
      response - Success Status
    • broadcastMessage

      static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent... message)
      Sends a message to all players
      Parameters:
      message - Message to send
    • broadcastMessage

      static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response)
      Sends a message to all players
      Parameters:
      message - Message to send
      response - Success Status
    • broadcastMessage

      static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response)
      Sends a messages to all players
      Parameters:
      message - Message to send
      response - Success Status
    • broadcastMessage

      static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages)
      Sends messages to all players
      Parameters:
      messages - Messages to send
    • broadcastMessage

      static void broadcastMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response)
      Sends messages to all players
      Parameters:
      messages - Messages to send
      response - Success Status
    • sendMessage

      default void sendMessage(net.md_5.bungee.api.chat.BaseComponent... message)
      Sends a message to this player
      Parameters:
      message - Message to send
    • sendMessage

      default void sendMessage(net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response)
      Sends a message to this player
      Parameters:
      message - Message to send
      response - Success Status
    • sendMessage

      default void sendMessage(net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response)
      Sends a message to this player
      Parameters:
      message - Message to send
      response - Success Status
    • sendMessage

      default void sendMessage(net.md_5.bungee.api.chat.BaseComponent[]... messages)
      Sends messages to this player
      Parameters:
      messages - Messages to send
    • sendMessage

      default void sendMessage(net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response)
      Sends messages to this player
      Parameters:
      messages - Messages to send
      response - Success Status
    • sendMessage

      static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent... message)
      Sends a message to these players
      Parameters:
      players - Players to select
      message - Message to send
    • sendMessage

      static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent message, IntConsumer response)
      Sends a message to these players
      Parameters:
      players - Players to select
      message - Message to send
      response - Success Status
    • sendMessage

      static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[] message, IntConsumer response)
      Sends a message to these players
      Parameters:
      players - Players to select
      message - Message to send
      response - Success Status
    • sendMessage

      static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[]... messages)
      Sends messages to these players
      Parameters:
      players - Players to select
      messages - Messages to send
    • sendMessage

      static void sendMessage(UUID[] players, net.md_5.bungee.api.chat.BaseComponent[][] messages, IntConsumer response)
      Sends messages to these players
      Parameters:
      players - Players to select
      messages - Message to send
      response - Success Status
    • transfer

      default void transfer(String server)
      Transfers this player to another server
      Parameters:
      server - Target server
    • transfer

      default void transfer(String server, IntConsumer response)
      Transfers this player to another server
      Parameters:
      server - Target server
      response - Success status
    • transfer

      static void transfer(UUID[] players, String server)
      Transfers these players to another server
      Parameters:
      players - Players to select
      server - Target server
    • transfer

      static void transfer(UUID[] players, String server, IntConsumer response)
      Transfers these players to another server
      Parameters:
      players - Players to select
      server - Target server
      response - Success status
    • transfer

      default void transfer(ServerInfo server)
      Transfers this player to another server
      Parameters:
      server - Target server
    • transfer

      default void transfer(ServerInfo server, IntConsumer response)
      Transfers this player to another server
      Parameters:
      server - Target server
      response - Success status
    • transfer

      static void transfer(UUID[] players, ServerInfo server)
      Transfers these players to another server
      Parameters:
      players - Players to select
      server - Target server
    • transfer

      static void transfer(UUID[] players, ServerInfo server, IntConsumer response)
      Transfers these players to another server
      Parameters:
      players - Players to select
      server - Target server
      response - Success status
    • disconnect

      default void disconnect()
      Disconnects this player from the network
    • disconnect

      default void disconnect(IntConsumer response)
      Disconnects this player from the network
      Parameters:
      response - Success status
    • disconnect

      default void disconnect(String reason)
      Disconnects this player from the network
      Parameters:
      reason - Disconnect Reason
    • disconnect

      default void disconnect(String reason, IntConsumer response)
      Disconnects this player from the network
      Parameters:
      reason - Disconnect Reason
      response - Success status
    • disconnect

      static void disconnect(UUID... players)
      Disconnects these players from the network
      Parameters:
      players - Players to select
    • disconnect

      static void disconnect(UUID[] players, IntConsumer response)
      Disconnects these players from the network
      Parameters:
      players - Players to select
      response - Success status
    • disconnect

      static void disconnect(UUID[] players, String reason)
      Disconnects these players from the network
      Parameters:
      players - Players to select
      reason - Disconnect Reason
    • disconnect

      static void disconnect(UUID[] players, String reason, IntConsumer response)
      Disconnects these players from the network
      Parameters:
      players - Players to select
      reason - Disconnect Reason
      response - Success status