13
0
geforkt von Mirrors/Velocity

Update Velocity (might fix Command problems) and fix PluginMessages... #4

Zusammengeführt
Lixfel hat 32 Commits von fix-pluginmessages nach master 2024-08-20 08:14:12 +02:00 zusammengeführt
Nur Änderungen aus Commit 82e81909d8 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -260,6 +260,13 @@ public class BungeeCordMessageResponder {
});
}
private void processKickRaw(ByteBufDataInput in) {
proxy.getPlayer(in.readUTF()).ifPresent(player -> {
String kickReason = in.readUTF();
player.disconnect(GsonComponentSerializer.gson().deserialize(kickReason));
});
}
private void processForwardToPlayer(ByteBufDataInput in) {
Optional<Player> player = proxy.getPlayer(in.readUTF());
if (player.isPresent()) {
@ -372,6 +379,9 @@ public class BungeeCordMessageResponder {
case "KickPlayer":
this.processKick(in);
break;
case "KickPlayerRaw":
this.processKickRaw(in);
break;
default:
// Do nothing, unknown command
break;