public final class ProxyData extends Object
Constructor and Description |
---|
ProxyData(GlowSession session,
String sourceText)
Create a proxy data structure for a session from the given source text.
|
ProxyData(String hostname,
InetSocketAddress address,
UUID uuid,
List<com.destroystokyo.paper.profile.ProfileProperty> properties) |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getAddress()
The spoofed address to use instead of the actual one.
|
String |
getHostname()
The spoofed hostname to use instead of the actual one.
|
GlowPlayerProfile |
getProfile(String name)
Get a spoofed profile to use with the given name.
|
public ProxyData(GlowSession session, String sourceText) throws Exception
session
- The session to create the data for.sourceText
- Contents of the hostname field of the handshake.Exception
- if an error occurs parsing the source text.public ProxyData(String hostname, InetSocketAddress address, UUID uuid, List<com.destroystokyo.paper.profile.ProfileProperty> properties)
public GlowPlayerProfile getProfile(String name)
name
- The player name.public String getHostname()
public InetSocketAddress getAddress()
Copyright © 2021. All rights reserved.