ability to query client brand and server scarpet version.

This commit is contained in:
gnembon committed 2020-12-02 22:36:20 -04:00
1 parent 632d7c3268
commit 259bdc2c94
5 files changed
+27 -10

No files matched your search

@@ -217,6 +217,13 @@ public class ServerNetworkHandler
}
public static String getPlayerStatus(ServerPlayerEntity player)
{
if (remoteCarpetPlayers.containsKey(player)) return "carpet "+remoteCarpetPlayers.get(player);
if (validCarpetPlayers.contains(player)) return "carpet "+CarpetSettings.carpetVersion;
return "vanilla";
}
private static class DataBuilder
{
private CompoundTag tag;