Package one.tranic.t.bungee.player
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 Summary
ConstructorsConstructorDescriptionBungeePlayer(net.md_5.bungee.api.CommandSender commandSender) Deprecated.BungeePlayer(net.md_5.bungee.api.connection.ProxiedPlayer player) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BungeePlayercreatePlayer(@NotNull String username) Deprecated.Creates aBungeePlayerinstance based on the provided username.static @Nullable BungeePlayercreatePlayer(@NotNull UUID uuid) Deprecated.Creates a newBungeePlayerinstance for the specified UUID.static @Nullable BungeePlayercreatePlayer(@Nullable net.md_5.bungee.api.connection.ProxiedPlayer player) Deprecated.Creates a new instance ofBungeePlayerbased on the givenProxiedPlayer.@Nullable StringDeprecated.@NotNull StringDeprecated.@NotNull LocaleDeprecated.@Nullable one.tranic.t.base.player.LocationDeprecated.longgetPing()Deprecated.net.md_5.bungee.api.connection.ProxiedPlayerDeprecated.@NotNull UUIDDeprecated.@NotNull StringDeprecated.booleanisOnline()Deprecated.booleankick()Deprecated.booleankick(@NotNull net.kyori.adventure.text.Component reason) Deprecated.booleanDeprecated.voidsendMessage(@NotNull String message) Deprecated.voidsendMessage(@NotNull net.kyori.adventure.text.Component message) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.tranic.t.base.player.Player
getPlayerProtocolVersion, getPlayerVersion, getXUID, isBedrockPlayer, sendForm, sendFormAsync
-
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 ofBungeePlayerbased on the givenProxiedPlayer.If the provided player is null, this method returns null.
- Parameters:
player- theProxiedPlayerinstance to wrap, may be null- Returns:
- a new
BungeePlayerinstance wrapping the given player, or null if the input is null
-
createPlayer
Deprecated.Creates a newBungeePlayerinstance for the specified UUID.- Parameters:
uuid- the UUID of the player to create aBungeePlayerfor; must not be null- Returns:
- a
BungeePlayerinstance representing the player with the given UUID, or null if no player is found
-
createPlayer
Deprecated.Creates aBungeePlayerinstance 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 aBungeePlayerinstance for; must not be null- Returns:
- a
BungeePlayerinstance if the username maps to an online player, or null if no such player is found
-
getUsername
Deprecated.- Specified by:
getUsernamein interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
getUniqueId
Deprecated.- Specified by:
getUniqueIdin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
getConnectedHost
Deprecated.- Specified by:
getConnectedHostin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
getLocale
Deprecated.- Specified by:
getLocalein interfaceone.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:
getLocationin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
getPing
public long getPing()Deprecated.- Specified by:
getPingin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
isOnline
public boolean isOnline()Deprecated.- Specified by:
isOnlinein interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
getClientBrand
Deprecated.- Specified by:
getClientBrandin interfaceone.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:
getSourcePlayerin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
kick
public boolean kick()Deprecated.- Specified by:
kickin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
kick
Deprecated.- Specified by:
kickin interfaceone.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:
kickin interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-
sendMessage
Deprecated.- Specified by:
sendMessagein interfaceone.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:
sendMessagein interfaceone.tranic.t.base.player.Player<net.md_5.bungee.api.connection.ProxiedPlayer>
-