Class BungeePlayer

java.lang.Object
one.tranic.t.bungee.player.BungeePlayer
All Implemented Interfaces:
one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>

@Deprecated public class BungeePlayer extends Object implements one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
Deprecated.
  • Constructor Details

    • BungeePlayer

      public BungeePlayer(net.md_5.bungee.api.connection.ProxiedPlayer player)
      Deprecated.
    • BungeePlayer

      public BungeePlayer(net.md_5.bungee.api.CommandSender commandSender)
      Deprecated.
  • Method Details

    • createPlayer

      @Nullable public static @Nullable BungeePlayer createPlayer(@Nullable @Nullable net.md_5.bungee.api.connection.ProxiedPlayer player)
      Deprecated.
      Creates a new instance of BungeePlayer based on the given ProxiedPlayer.

      If the provided player is null, this method returns null.

      Parameters:
      player - the ProxiedPlayer instance to wrap, may be null
      Returns:
      a new BungeePlayer instance wrapping the given player, or null if the input is null
    • createPlayer

      @Nullable public static @Nullable BungeePlayer createPlayer(@NotNull @NotNull UUID uuid)
      Deprecated.
      Creates a new BungeePlayer instance for the specified UUID.
      Parameters:
      uuid - the UUID of the player to create a BungeePlayer for; must not be null
      Returns:
      a BungeePlayer instance representing the player with the given UUID, or null if no player is found
    • createPlayer

      @Nullable public static @Nullable BungeePlayer createPlayer(@NotNull @NotNull String username)
      Deprecated.
      Creates a BungeePlayer instance based on the provided username.

      If no player with the given username is found, this method will return null.

      Parameters:
      username - the username of the player to create a BungeePlayer instance for; must not be null
      Returns:
      a BungeePlayer instance if the username maps to an online player, or null if no such player is found
    • getUsername

      @NotNull public @NotNull String getUsername()
      Deprecated.
      Specified by:
      getUsername in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getUniqueId

      @NotNull public @NotNull UUID getUniqueId()
      Deprecated.
      Specified by:
      getUniqueId in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getConnectedHost

      @NotNull public @NotNull String getConnectedHost()
      Deprecated.
      Specified by:
      getConnectedHost in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getLocale

      @NotNull public @NotNull Locale getLocale()
      Deprecated.
      Specified by:
      getLocale in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getLocation

      @Nullable public @Nullable one.tranic.t.base.player.Location getLocation()
      Deprecated.
      Specified by:
      getLocation in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getPing

      public long getPing()
      Deprecated.
      Specified by:
      getPing in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • isOnline

      public boolean isOnline()
      Deprecated.
      Specified by:
      isOnline in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getClientBrand

      @Nullable public @Nullable String getClientBrand()
      Deprecated.
      Specified by:
      getClientBrand in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • getSourcePlayer

      public net.md_5.bungee.api.connection.ProxiedPlayer getSourcePlayer()
      Deprecated.
      Specified by:
      getSourcePlayer in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • kick

      public boolean kick()
      Deprecated.
      Specified by:
      kick in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • kick

      public boolean kick(String reason)
      Deprecated.
      Specified by:
      kick in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • kick

      public boolean kick(@NotNull @NotNull net.kyori.adventure.text.Component reason)
      Deprecated.
      Specified by:
      kick in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • sendMessage

      public void sendMessage(@NotNull @NotNull String message)
      Deprecated.
      Specified by:
      sendMessage in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Deprecated.
      Specified by:
      sendMessage in interface one.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>