Package net.glowstone.net
Class ProxyData
java.lang.Object
net.glowstone.net.ProxyData
Container for proxy (e.g. BungeeCord) player data spoofing.
-
Constructor Summary
ConstructorDescriptionProxyData
(String hostname, InetSocketAddress address, UUID uuid, List<com.destroystokyo.paper.profile.ProfileProperty> properties) ProxyData
(GlowSession session, String sourceText) Create a proxy data structure for a session from the given source text. -
Method Summary
Modifier and TypeMethodDescriptionThe spoofed address to use instead of the actual one.The spoofed hostname to use instead of the actual one.getProfile
(String name) Get a spoofed profile to use with the given name.
-
Constructor Details
-
ProxyData
Create a proxy data structure for a session from the given source text.- Parameters:
session
- The session to create the data for.sourceText
- Contents of the hostname field of the handshake.- Throws:
Exception
- if an error occurs parsing the source text.
-
ProxyData
public ProxyData(String hostname, InetSocketAddress address, UUID uuid, List<com.destroystokyo.paper.profile.ProfileProperty> properties)
-
-
Method Details
-
getProfile
Get a spoofed profile to use with the given name.- Parameters:
name
- The player name.- Returns:
- The spoofed profile.
-
getHostname
The spoofed hostname to use instead of the actual one. -
getAddress
The spoofed address to use instead of the actual one.- Returns:
- The spoofed address.
-