Add getters for game / protocol version.
This commit is contained in:
parent
7fec907ab8
commit
2e04640638
@ -182,4 +182,18 @@ public abstract class ProxyServer
|
||||
* @return registered plugin channels
|
||||
*/
|
||||
public abstract Collection<String> getChannels();
|
||||
|
||||
/**
|
||||
* Get the Minecraft version supported by this proxy.
|
||||
*
|
||||
* @return the supported Minecraft version
|
||||
*/
|
||||
public abstract String getGameVersion();
|
||||
|
||||
/**
|
||||
* Get the Minecraft protocol version supported by this proxy.
|
||||
*
|
||||
* @return the Minecraft protocol version
|
||||
*/
|
||||
public abstract byte getProtocolVersion();
|
||||
}
|
||||
|
@ -327,4 +327,16 @@ public class BungeeCord extends ProxyServer
|
||||
byte[] payload = sb.substring(0, sb.length() - 1).getBytes();
|
||||
return new PacketFAPluginMessage("REGISTER", payload);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte getProtocolVersion()
|
||||
{
|
||||
return PROTOCOL_VERSION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGameVersion()
|
||||
{
|
||||
return GAME_VERSION;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user