Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-04 23:30:17 +01:00
Ursprung
1b15f3058f
Commit
aad4536990
@ -27,6 +27,7 @@ package org.geysermc.connector.network.translators.java.entity.player;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import com.nukkitx.protocol.bedrock.data.CommandPermission;
|
||||
import org.geysermc.connector.entity.Entity;
|
||||
import org.geysermc.connector.network.session.GeyserSession;
|
||||
import org.geysermc.connector.network.translators.PacketTranslator;
|
||||
@ -68,6 +69,8 @@ public class JavaPlayerAbilitiesTranslator extends PacketTranslator<ServerPlayer
|
||||
|
||||
AdventureSettingsPacket adventureSettingsPacket = new AdventureSettingsPacket();
|
||||
adventureSettingsPacket.setPlayerPermission(PlayerPermission.MEMBER);
|
||||
// Required or the packet simply is not sent
|
||||
adventureSettingsPacket.setCommandPermission(CommandPermission.NORMAL);
|
||||
adventureSettingsPacket.setUniqueEntityId(entity.getGeyserId());
|
||||
adventureSettingsPacket.getFlags().addAll(playerFlags);
|
||||
session.getUpstream().sendPacket(adventureSettingsPacket);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren