1
0

Initial BungeeCord support.

Ref.: #1392
This commit is contained in:
madmaxoft
2014-09-17 09:38:06 +02:00
parent 96f45a48d4
commit 3406957f1b
4 changed files with 43 additions and 1 deletions

View File

@@ -100,6 +100,15 @@ cProtocol172::cProtocol172(cClientHandle * a_Client, const AString & a_ServerAdd
m_IsEncrypted(false),
m_LastSentDimension(dimNotSet)
{
// BungeeCord handling:
// If BC is setup with ip_forward == true, it sends additional data in the login packet's ServerAddress field:
// hostname\00ip-address\00uuid\00profile-properties-as-json
AStringVector Params;
if (SplitZeroTerminatedStrings(a_ServerAddress, Params) && (Params.size() == 4))
{
m_ServerAddress = Params[0];
}
// Create the comm log file, if so requested:
if (g_ShouldLogCommIn || g_ShouldLogCommOut)
{