Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Whoops. Forgot to update Geyser to match recent global api changes
Dieser Commit ist enthalten in:
Ursprung
e7eca7f7b9
Commit
a2d3ccfb2f
@ -103,16 +103,25 @@ public final class FloodgateSkinUploader {
|
|||||||
break;
|
break;
|
||||||
case SKIN_UPLOADED:
|
case SKIN_UPLOADED:
|
||||||
// if Geyser is the only subscriber we have send it to the server manually
|
// if Geyser is the only subscriber we have send it to the server manually
|
||||||
|
// otherwise it's handled by the Floodgate plugin subscribers
|
||||||
if (subscribersCount != 1) {
|
if (subscribersCount != 1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
String xuid = node.get("xuid").asText();
|
String xuid = node.get("xuid").asText();
|
||||||
String value = node.get("value").asText();
|
|
||||||
String signature = node.get("signature").asText();
|
|
||||||
|
|
||||||
GeyserSession session = connector.getPlayerByXuid(xuid);
|
GeyserSession session = connector.getPlayerByXuid(xuid);
|
||||||
|
|
||||||
if (session != null) {
|
if (session != null) {
|
||||||
|
if (!node.get("success").asBoolean()) {
|
||||||
|
logger.info("Failed to upload skin for " + session.getName());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
JsonNode data = node.get("data");
|
||||||
|
|
||||||
|
String value = data.get("value").asText();
|
||||||
|
String signature = data.get("signature").asText();
|
||||||
|
|
||||||
byte[] bytes = (value + '\0' + signature)
|
byte[] bytes = (value + '\0' + signature)
|
||||||
.getBytes(StandardCharsets.UTF_8);
|
.getBytes(StandardCharsets.UTF_8);
|
||||||
PluginMessageUtils.sendMessage(session, getSkinChannel(), bytes);
|
PluginMessageUtils.sendMessage(session, getSkinChannel(), bytes);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren