Implement tab list display name update

Packet 0x2D with action 0x03
This commit is contained in:
ORelio 2016-08-23 00:13:46 +02:00
parent 461385d057
commit b1d4f85b23
4 changed files with 31 additions and 7 deletions

View file

@ -597,6 +597,21 @@ namespace MinecraftClient
}
}
/// <summary>
/// Get an online player by UUID
/// </summary>
/// <param name="uuid">Player UUID</param>
/// <returns>The player, or NULL if not found</returns>
public PlayerInfo GetPlayer(Guid uuid)
{
lock (onlinePlayers)
{
if (onlinePlayers.ContainsKey(uuid))
return onlinePlayers[uuid];
return null;
}
}
/// <summary>
/// Registers the given plugin channel for the given bot.
/// </summary>